signal_drift | R Documentation |
Drift Intensities
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)
x , y |
A |
lag |
A |
... |
Currently not used. |
subtract |
A |
Returns a list
with two components x
and y
.
N. Frerebeau
Other signal processing methods:
signal_bind()
,
signal_correct()
,
signal_mean()
,
signal_shift()
,
subset()
## 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.