Learn R Programming

baseline (version 1.3-5)

baseline.medianWindow: Median window

Description

An implementation and extention of Mark S. Friedrichs' model-free algorithm

Usage

baseline.medianWindow(spectra, hwm, hws, end)

Value

baseline

Matrix of baselines corresponding to spectra spectra

corrected

Matrix of baseline corrected spectra

Arguments

spectra

Matrix with spectra in rows

hwm

Window half width for local medians

hws

Window half width for local smoothing (optional)

end

Original endpoint handling (optional boolean)

Author

Kristian Hovde Liland and Bjørn-Helge Mevik

Details

An algorithm finding medians in local windows and smoothing with gaussian weighting

References

Mark S. Friedrichs: A model-free algorithm for the removal of baseline artifacts

Examples

Run this code
data(milk)
bc.medianWindow <- baseline(milk$spectra[1,, drop=FALSE], hwm=300,
	method='medianWindow')
if (FALSE) {
	plot(bc.medianWindow)
}

Run the code above in your browser using DataLab