wl.eval: Evaluate function on wavelengths of hyperSpec object

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
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

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

Example output

Loading required package: lattice
Loading required package: grid
Loading required package: ggplot2
Loading required package: xml2
Package hyperSpec, version 0.99-20200527

To get started, try
   vignette ("hyperspec")
   package?hyperSpec 
   vignette (package = "hyperSpec")

If you use this package please cite it appropriately.
   citation("hyperSpec")
will give you the correct reference.

The project homepage is http://hyperspec.r-forge.r-project.org

hyperSpec documentation built on Sept. 13, 2021, 5:09 p.m.