Fill peaks
An iterative algorithm using suppression of baseline by means in local windows
baseline.fillPeaks(spectra, lambda, hwi, it, int)
spectra |
Matrix with spectra in rows |
lambda |
2nd derivative penalty for primary smoothing |
hwi |
Half width of local windows |
it |
Number of iterations in suppression loop |
int |
Number of buckets to divide spectra into |
In local windows of buckets the minimum of the mean and the previous iteration is chosen as the new baseline
baseline |
Matrix of baselines corresponding to spectra |
corrected |
Matrix of baseline corrected spectra |
Kristian Hovde Liland and Bjørn-Helge Mevik
Kristian Hovde Liland, 4S Peak Filling - baseline estimation by iterative mean suppression, MethodsX 2015
data(milk) bc.fillPeaks <- baseline(milk$spectra[1,, drop=FALSE], lambda=6, hwi=50, it=10, int=2000, method='fillPeaks') ## Not run: plot(bc.fillPeaks) ## End(Not run)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.