View source: R/baseline.modpolyfit.R
baseline.modpolyfit | R Documentation |
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)
spectra |
Matrix with spectra in rows |
t |
Optional vector of spectrum abcissa |
degree |
Degree of polynomial |
tol |
Tolerance of difference between iterations |
rep |
Maximum number of iterations |
Polynomial fitting with baseline suppression relative to original spectrum
baseline |
Matrix of baselines corresponding to spectra |
corrected |
Matrix of baseline corrected spectra |
Kristian Hovde Liland and Bjørn-Helge Mevik
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)
## Not run:
plot(bc.modpolyfit)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.