View source: R/baseline.medianWindow.R
baseline.medianWindow | R Documentation |
An implementation and extention of Mark S. Friedrichs' model-free algorithm
baseline.medianWindow(spectra, hwm, hws, end)
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) |
An algorithm finding medians in local windows and smoothing with gaussian weighting
baseline |
Matrix of baselines corresponding to spectra |
corrected |
Matrix of baseline corrected spectra |
Kristian Hovde Liland and Bjørn-Helge Mevik
Mark S. Friedrichs: A model-free algorithm for the removal of baseline artifacts
data(milk)
bc.medianWindow <- baseline(milk$spectra[1,, drop=FALSE], hwm=300,
method='medianWindow')
## Not run:
plot(bc.medianWindow)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.