Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

wl.eval

Evaluate function on wavelengths of hyperSpec object


Description

This is useful for generating certain types of baseline "reference spectra".

Usage

wl.eval(x, ..., normalize.wl = I)

Arguments

x

hyperSpec object

...

hyperSpec method: expressions to be evaluated

normalize.wl

function to transorm the wavelengths before evaluating the polynomial (or other function). Use normalize01 to map the wavelength range to the interval [0, 1].

Value

hyperSpec object containing one spectrum for each expression

Author(s)

C. Beleites

See Also

vanderMonde for polynomials,

normalize01 to normalize the wavenumbers before evaluating the function

Examples

plot (wl.eval (laser, exp = function (x) exp (-x)))

hyperSpec

Work with Hyperspectral Data, i.e. Spectra + Meta Information (Spatial, Time, Concentration, ...)

v0.100.0
GPL (>= 3)
Authors
Claudia Beleites [aut, cre, dtc] (<https://orcid.org/0000-0003-1626-154X>), Valter Sergo [aut], Alois Bonifacio [ctb, dtc], Marcel Dahms [ctb], Björn Egert [ctb], Simon Fuller [ctb], Vilmantas Gegzna [ctb], Rustam Guliev [ctb], Bryan A. Hanson [ctb], Michael Hermes [ctb], Martin Kammer [dtc], Roman Kiselev [ctb], Sebastian Mellor [ctb]
Initial release
2021-09-13

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.