signal_drift {alkahest} | R Documentation |
Drift Intensities
Description
Drift Intensities
Usage
signal_drift(x, y, lag, ...)
## S4 method for signature 'numeric,numeric,numeric'
signal_drift(x, y, lag)
## S4 method for signature 'ANY,missing,ANY'
signal_drift(x, lag, subtract = FALSE)
Arguments
x , y |
A |
lag |
A |
... |
Currently not used. |
subtract |
A |
Value
Returns a list
with two components x
and y
.
Author(s)
N. Frerebeau
See Also
Other signal processing methods:
signal_bind()
,
signal_correct()
,
signal_mean()
,
signal_shift()
,
subset()
Examples
## gamma-ray spectrometry
data("BEGe")
## Subset from 2.75 to 200 keV
BEGe <- signal_select(BEGe, from = 3, to = 200)
## Drift
BEGe_plus <- signal_drift(BEGe, lag = 250)
BEGe_minus <- signal_drift(BEGe, lag = 250, subtract = TRUE)
plot(BEGe, type = "l", xlab = "Energy (keV)", ylab = "Count")
lines(BEGe_plus, type = "l", col = "red")
lines(BEGe_minus, type = "l", col = "green")
[Package alkahest version 1.2.0 Index]