Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

baseline.fillPeaks

Fill peaks


Description

An iterative algorithm using suppression of baseline by means in local windows

Usage

baseline.fillPeaks(spectra, lambda, hwi, it, int)

Arguments

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

Details

In local windows of buckets the minimum of the mean and the previous iteration is chosen as the new baseline

Value

baseline

Matrix of baselines corresponding to spectra spectra

corrected

Matrix of baseline corrected spectra

Author(s)

Kristian Hovde Liland and Bjørn-Helge Mevik

References

Kristian Hovde Liland, 4S Peak Filling - baseline estimation by iterative mean suppression, MethodsX 2015

Examples

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)

baseline

Baseline Correction of Spectra

v1.3-1
GPL-2
Authors
Kristian Hovde Liland [aut, cre], Bjørn-Helge Mevik [aut], Roberto Canteri [ctb]
Initial release
2020-09-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.