envelope: Envelope using analytic signal

Description Usage Arguments Value Examples

View source: R/hilbert.R

Description

Compute envelope (instantaneous amplitude) of a time series using hilbert transform

Usage

1

Arguments

s

vector of timeseries samples or ts object. NA values are not allowed.

Value

Real valued (non-negative) envelope of x.

Examples

1
2
3
4
s <- sin( 2 * pi * 1:256 * 0.05 )
S <- envelope( s )
plot( S, xlab = "Time", ylab = NULL, type = "l", ylim = c( -1.1, 1.1 ) )
lines( s, col = "red" )

jrevenaugh/TSAUMN documentation built on Nov. 8, 2019, 2:20 p.m.