powered by
An implementation and extention of Mark S. Friedrichs' model-free algorithm
baseline.medianWindow(spectra, hwm, hws, end)
Matrix with spectra in rows
Window half width for local medians
Window half width for local smoothing (optional)
Original endpoint handling (optional boolean)
Matrix of baselines corresponding to spectra spectra
spectra
Matrix of baseline corrected spectra
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
# NOT RUN { data(milk) bc.medianWindow <- baseline(milk$spectra[1,, drop=FALSE], hwm=300, method='medianWindow') # } # NOT RUN { plot(bc.medianWindow) # }
Run the code above in your browser using DataLab