envelope | R Documentation |
Estimate for each trace the amplitude envelope with the Hilbert transform (instataneous amplitude).
## S4 method for signature 'GPR'
envelope(x, method = c("peak", "hilbert"), npad = 100, threshold = 2)
x |
An object of the class GPR. |
method |
[ |
npad |
[ |
threshold |
[ |
Two methods:
hilbert
Envelope based on the Hilbert transform
peak
The local maxima of the absolute values of the
signal are first estimated. The envelope is determined using spline
interpolation over local maxima.
x <- frenkeLine00
plot(x[,10], lwd = 2)
lines(abs(x[,10]), col = "blue")
lines(envelope(x[,10], method = "hilbert"), col = "red")
lines(envelope(x[,10], method = "peak"), col = "green")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.