Learn R Programming

DecomposeR (version 1.0.6)

HilbertEnvelope: Instantaneous amplitude

Description

Generates the instantaneous amplitude of an analytic signal given by HilbertTransform

Usage

HilbertEnvelope(asig)

Value

envelope Instantaneous amplitude

Arguments

asig

The analytic signal returned by HilbertTransform

Author

Daniel C. Bowman (in the hht package)

See Also

HilbertTransform, InstantaneousFrequency

Examples

Run this code
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")

Run the code above in your browser using DataLab