xinterp | R Documentation |
Resampling of spectra (or any signal) by interpolation methods, including linear, spline, and cubic interpolation. Uses interp1
of package signal
.
xinterp(X, w, meth = "cubic", ...)
X |
A |
w |
A vector of the values where to interpolate (typically within the range of |
meth |
The method of interpolation. See |
... |
Optionnal arguments to pass in function |
A matrix of the interpolated spectra.
data(datcass)
X <- datcass$Xu
w <- seq(500, 2400, length = 10)
zX <- xinterp(X, w, meth = "spline")
plotsp(zX)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.