powered by
An implementation and extention of Mark S. Friedrichs' model-free algorithm
baseline.medianWindow(spectra, hwm, hws, end)
Matrix of baselines corresponding to spectra spectra
spectra
Matrix of baseline corrected spectra
Matrix with spectra in rows
Window half width for local medians
Window half width for local smoothing (optional)
Original endpoint handling (optional boolean)
Kristian Hovde Liland and Bjørn-Helge Mevik
An algorithm finding medians in local windows and smoothing with gaussian weighting
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') if (FALSE) { plot(bc.medianWindow) }
Run the code above in your browser using DataLab