Learn R Programming

hyperSpec (version 0.100.2)

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)

Value

hyperSpec object containing one spectrum for each expression

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].

Author

C. Beleites

See Also

vanderMonde for polynomials,

normalize01 to normalize the wavenumbers before evaluating the function

Examples

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

Run the code above in your browser using DataLab