View source: R/baseline.fillPeaks.R
baseline.fillPeaks | R Documentation |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.