Baseline with support points determined from a convex hull of the spectrum.
Use debuglevel >= 1
to obtain debug plots, either directly via function
argument or by setting hyperSpec's debuglevel
option.
spc_rubberband(spc, ..., upper = FALSE, noise = 0, spline = TRUE)
spc |
|
---|---|
... | further parameters handed to |
upper | logical indicating whether the lower or upper part of the hull should be used |
noise | noise level to be taken into account |
spline | logical indicating whether the baseline should be an interpolating spline through the support points or piece wise linear. |
hyperSpec
object containing the baselines
This function is still experimental
Claudia Beleites
bl <- spc_rubberband(paracetamol[, , 175 ~ 1800], noise = 300, df = 20) plot(bl, add = TRUE, col = 2)