HilbertEnvelope: Instantaneous amplitude

Description Usage Arguments Value Author(s) See Also Examples

View source: R/spectral_methods.R

Description

Generates the instantaneous amplitude of an analytic signal given by HilbertTransform

Usage

1

Arguments

asig

The analytic signal returned by HilbertTransform

Value

envelope

Instantaneous amplitude

Author(s)

Daniel C. Bowman [email protected]

See Also

HilbertTransform, InstantaneousFrequency

Examples

1
2
3
4
5
6
7
tt <- seq(1000) * 0.01
sig <- sin(4 * pi * tt) + sin(3.4 * pi * tt)
asig <- HilbertTransform(sig)
env <- HilbertEnvelope(asig)
plot(tt, sig, type = "l")
lines(tt, env, col = "red")
lines(tt, -env, col = "red")

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