baseline.corr: Baseline Correction using asymmetric least squares

Description Usage Arguments Value Author(s) References Examples

View source: R/baseline.corr.R

Description

This function estimates a baseline using asymmetric least squares and subtracts it from the data.

Usage

1

Arguments

y

signal(s) to correct. This can be a vector (containing one signal) or a matrix of signals(one signal per row)

...

other arguments to the asysm function.

Value

ycorr

baseline corrected signal(s): a vector or a matrix of the same dimension as the input signal(s)

Author(s)

Paul Eilers, Jan Gerretzen

References

Eilers, P.H.C. (2004) "Parametric Time Warping", Analytical Chemistry, 76 (2), 404 – 411.

Examples

1
2
3
data(gaschrom)
plot(gaschrom[1,], type = "l", ylim = c(0, 100))
lines(baseline.corr(gaschrom[1,]), col = 2)

ptw documentation built on Jan. 19, 2022, 5:07 p.m.