vanderMonde: Function evaluation on hyperSpec objects

Description Usage Arguments Details Value Author(s) See Also Examples

Description

vandermonde generates van der Monde matrices, the hyperSpec method generates a hyperSpec object containing the van der Monde matrix of the wavelengths of a hyperSpec object.

Usage

1
2
3
4
vanderMonde(x, order, ...)

## S4 method for signature 'hyperSpec'
vanderMonde(x, order, ..., normalize.wl = normalize01)

Arguments

x

object to evaluate the polynomial on

order

of the polynomial

...

hyperSpec method: further arguments to decomposition

normalize.wl

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

Details

It is often numerically preferrable to map wl (x) to [0, 1], see the example.

Value

van der Monde matrix

hyperSpec method: hyperSpec object containing van der Monde matrix as spectra and an additional column ".vdm.order" giving the order of each spectrum (term).

Author(s)

C. Beleites

See Also

wl.eval for calculating arbitrary functions of the wavelength,

normalize01

Examples

1
2
plot (vanderMonde (flu, 2))
plot (vanderMonde (flu, 2, normalize.wl = I))

Example output

Loading required package: lattice
Loading required package: grid
Loading required package: ggplot2
Package hyperSpec, version 0.98-20161118

To get started, try
   vignette ("introduction", package = "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 May 2, 2019, 5:45 p.m.