Iterative Restricted Least Squares
An algorithm with primary smoothing and repeated baseline suppressions and regressions with 2nd derivative constraint
baseline.irls(spectra, lambda1 = 5, lambda2 = 9, maxit = 200, wi = 0.05)
spectra |
Matrix with spectra in rows |
lambda1 |
2nd derivative constraint for primary smoothing |
lambda2 |
2nd derivative constraint for secondary smoothing |
maxit |
Maximum number of iterations |
wi |
Weighting of positive residuals |
baseline |
Matrix of baselines corresponding to spectra |
corrected |
Matrix of baseline corrected spectra |
smoothed |
Matrix of primary smoothed spectra |
Kristian Hovde Liland and Bjørn-Helge Mevik
data(milk) bc.irls <- baseline(milk$spectra[1,, drop=FALSE], method='irls') ## Not run: plot(bc.irls) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.