Learn R Programming

baseline (version 1.3-1)

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)

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

Value

baseline

Matrix of baselines corresponding to spectra spectra

corrected

Matrix of baseline corrected spectra

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
# NOT RUN {
data(milk)
bc.modpolyfit <- baseline(milk$spectra[1,, drop=FALSE], method='modpolyfit', deg=6)
# }
# NOT RUN {
	plot(bc.modpolyfit)
# }

Run the code above in your browser using DataLab