Spectral smoothing by splines.
spc_smooth_spline(spc, newx = wl(spc), ...)
| spc |
|
|---|---|
| newx | wavelength axis to interpolate on |
| ... | further parameters handed to |
hyperSpec object containing smoothed spectra
This function is still experimental
Claudia Beleites
smooth <- spc_smooth_spline(p[, , c(2200 ~ 2400, 2500 ~ 2825, 3150 ~ max)], wl(paracetamol[, , 2200 ~ max]), df = 4, spar = 1 ) plot(smooth, col = "red", add = TRUE)