baseline_peakfilling {alkahest} | R Documentation |
4S Peak Filling
Description
Baseline estimation by iterative mean suppression.
Usage
baseline_peakfilling(x, y, ...)
## S4 method for signature 'numeric,numeric'
baseline_peakfilling(x, y, n, m, by = 10, lambda = 1600, d = 2, sparse = FALSE)
## S4 method for signature 'ANY,missing'
baseline_peakfilling(x, n, m, by = 10, lambda = 1600, d = 2, sparse = FALSE)
Arguments
x , y |
A |
... |
Currently not used. |
n |
An |
m |
An odd |
by |
A length-one |
lambda |
An |
d |
An |
sparse |
A |
Value
Returns a list
with two components x
and y
.
Author(s)
N. Frerebeau
References
Liland, K. H. (2015). 4S Peak Filling - baseline estimation by iterative mean suppression. MethodsX, 2, 135-140. doi:10.1016/j.mex.2015.02.009.
See Also
signal_correct()
, smooth_whittaker()
Other baseline estimation methods:
baseline_asls()
,
baseline_linear()
,
baseline_polynomial()
,
baseline_rollingball()
,
baseline_rubberband()
,
baseline_snip()
Examples
## X-ray diffraction
data("XRD")
## 4S Peak Filling baseline
baseline <- baseline_peakfilling(XRD, n = 10, m = 5, by = 10, sparse = TRUE)
plot(XRD, type = "l", xlab = expression(2*theta), ylab = "Count")
lines(baseline, type = "l", col = "red")