vanderMonde | R Documentation |
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.
vanderMonde(x, order, ...)
## S4 method for signature 'hyperSpec'
vanderMonde(x, order, ..., normalize.wl = normalize01)
x |
object to evaluate the polynomial on |
order |
of the polynomial |
... |
hyperSpec method: further arguments to |
normalize.wl |
function to transorm the wavelengths before evaluating the polynomial (or
other function). |
It is often numerically preferrable to map wl (x)
to [0, 1], see the example.
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).
C. Beleites
wl.eval
for calculating arbitrary functions of the wavelength,
normalize01
plot (vanderMonde (flu, 2))
plot (vanderMonde (flu, 2, normalize.wl = I))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.