HilbertTransform: The Hilbert transform

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/spectral_methods.R

Description

Creates the analytic signal using the Hilbert transform.

Usage

1

Arguments

sig

Signal to transform.

Details

Creates the real and imaginary parts of a signal.

Value

asig

Analytic signal

Author(s)

Daniel C. Bowman [email protected]

See Also

HilbertEnvelope, InstantaneousFrequency

Examples

1
2
3
4
5
6
7
8
9
tt <- seq(1000) * 0.01
sig <- sin(pi * tt)
asig <- HilbertTransform(sig)
plot(tt, sig, xlim = c(0, 12))
lines(tt, Re(asig), col = "green")
lines(tt, Im(asig), col = "red")
legend("topright", col = c("black", "green", "red"), 
lty = c(NA, 1, 1), pch = c(1, NA, NA), 
legend = c("Signal", "Real", "Imaginary"))

hht documentation built on May 29, 2017, 9:26 a.m.