analytic_signal#

hypercoil.functional.fourier.analytic_signal(X: Tensor, axis: int = -1, n: int | None = None) Tensor[source]#

Compute the analytic signal.

The analytic signal is a helical representation of the input signal in the complex plane. Its real and imaginary parts are related by the Hilbert transform. Its properties can be used to quickly derive measures such as a signal envelope and instantaneous measures of frequency and phase.

Parameters:
Xtensor

Input tensor.

axisint (default -1)

Axis along which the transform is applied.

nint (default None)

Number of frequency components; dimension of the Fourier transform. This defaults to the size of the input along the transform axis.

Returns:
Tensor

Output tensor.