hilbert_env: Compute the envelope of X using Hilbert transform.
Compute the envelope of the signal matrix X using the Hilbert transform.
To avoid long transforms, this function uses the overlap and add method.
Description
Compute the envelope of X using Hilbert transform.
Compute the envelope of the signal matrix X using the Hilbert transform.
To avoid long transforms, this function uses the overlap and add method.
Usage
hilbert_env(X, N = 1024)
Value
E, the envelope of X. E is the same size as X: it has the same number of columns
and the same number of samples per signal. It has the same units as
X but being an envelope, all values are >=0.
Arguments
X
a vector or matrix of signals. If X is a matrix, each column is treated as a separate signal.
The signals must be regularly sampled for the result to be correctly interpretable as the envelope.
N
(optional) specifies the transform length used.
The default value is 1024 and this may be fine for most situations.