Learn R Programming

baseline (version 1.3-5)

baseline.rollingBall: Rolling ball

Description

Ideas from Rolling Ball algorithm for X-ray spectra by M.A.Kneen and H.J. Annegarn. Variable window width has been left out

Usage

baseline.rollingBall(spectra, wm, ws)

Value

baseline

Matrix of baselines corresponding to spectra spectra

corrected

Matrix of baseline corrected spectra

Arguments

spectra

Matrix with spectra in rows

wm

Width of local window for minimization/maximization

ws

Width of local window for smoothing

Author

Kristian Hovde Liland and Bjørn-Helge Mevik

References

M.A. Kneen, H.J. Annegarn: Algorithm for fitting XRF, SEM and PIXE X-ray spectra backgrounds

Examples

Run this code
data(milk)
bc.rollingBall <- baseline(milk$spectra[1,, drop=FALSE], wm=200, ws=200,
	method='rollingBall')
if (FALSE) {
	plot(bc.rollingBall)
}

Run the code above in your browser using DataLab