dcshift | R Documentation |
The direct-current offset (DC-shift) is estimated and removed from every trace individually. For a given trace, the DC-shift is estimated by a user supplied function applied on few trace samples, normally the samples before time-zero (e.g., the average of the samples before time-zero). Then, the DC-shift is substracted from the trace.
## S4 method for signature 'GPR'
dcshift(x, u = NULL, FUN = mean, ..., track = TRUE)
x |
[ |
u |
[ |
FUN |
[ |
... |
[ |
The direct-current offset (or DC-shift) is a constant bias over time that slightly shifts the signal amplitude. The DC-shift is best observed on the trace samples recorded before the signal was emitted.
Modified slots
data
: DC-shift removed (data dimensions unchanged).
proc
: updated with function name and arguments.
[GPR class
] An object of the class GPR
.
data("frenkeLine00")
x <- frenkeLine00
x1 <- dcshift(x, u = 1:100, FUN = median)
plot(x - x1)
x2 <- dcshift(x)
plot(x - x2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.