modulation.signal_utilities.audio_utilities.filtering.hilbert_envelope

modulation.signal_utilities.audio_utilities.filtering.hilbert_envelope(signal: ndarray, *, n_fft: Optional[int] = None) ndarray[source]

Calculates the Hilbert envelope of a signal.

Parameters
  • signal

    The signal to calculate the Hilbert envelope of.

    Signal on which to calculate the hilbert envelope. The calculation

    is done along the last axis (i.e. axis=-1).

  • n_fft – The FFT size to use. If not provided, it will be determined from the length of the signal.

Returns

The Hilbert envelope of the signal.