baseline (version 1.3-5)

baseline.modpolyfit: Modified polynomial fitting

Description

An implementation of CHAD A. LIEBER and ANITA MAHADEVAN-JANSENs algorithm for polynomial fiting

Usage

baseline.modpolyfit(spectra, t, degree = 4, tol = 0.001, rep = 100)

Value

baseline

Matrix of baselines corresponding to spectra spectra

corrected

Matrix of baseline corrected spectra

Arguments

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

Author

Kristian Hovde Liland and Bjørn-Helge Mevik

Details

Polynomial fitting with baseline suppression relative to original spectrum

References

CHAD A. LIEBER and ANITA MAHADEVAN-JANSEN: Automated Method for Subtraction of Fluorescence from Biological Raman Spectra

Examples

Run this code
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