vanderMonde: Function evaluation on hyperSpec objects
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
vanderMonde(x, order, ...)
## S3 method for class 'hyperSpec':
vanderMonde(x, order, ...,
normalize.wl = normalize01)
Arguments
x
vector with values to evaluate the polynomial on
hyperSpec object
order
of the polynomial
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
...
hyperSpec method: further arguments to
decomposition
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).
Details
It is often numerically preferrable to map wl (x)
to [0, 1], see the example.
See Also
wl.eval for calculating
arbitrary functions of the wavelength,