powered by
An iterative algorithm using suppression of baseline by means in local windows
baseline.fillPeaks(spectra, lambda, hwi, it, int)
Matrix of baselines corresponding to spectra spectra
spectra
Matrix of baseline corrected spectra
Matrix with spectra in rows
2nd derivative penalty for primary smoothing
Half width of local windows
Number of iterations in suppression loop
Number of buckets to divide spectra into
Kristian Hovde Liland and Bjørn-Helge Mevik
In local windows of buckets the minimum of the mean and the previous iteration is chosen as the new baseline
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') if (FALSE) { plot(bc.fillPeaks) }
Run the code above in your browser using DataLab