powered by
An implementation of CHAD A. LIEBER and ANITA MAHADEVAN-JANSENs algorithm for polynomial fiting
baseline.modpolyfit(spectra, t, degree = 4, tol = 0.001, rep = 100)
Matrix of baselines corresponding to spectra spectra
spectra
Matrix of baseline corrected spectra
Matrix with spectra in rows
Optional vector of spectrum abcissa
Degree of polynomial
Tolerance of difference between iterations
Maximum number of iterations
Kristian Hovde Liland and Bjørn-Helge Mevik
Polynomial fitting with baseline suppression relative to original spectrum
CHAD A. LIEBER and ANITA MAHADEVAN-JANSEN: Automated Method for Subtraction of Fluorescence from Biological Raman Spectra
data(milk) bc.modpolyfit <- baseline(milk$spectra[1,, drop=FALSE], method='modpolyfit', deg=6) if (FALSE) { plot(bc.modpolyfit) }
Run the code above in your browser using DataLab