obspy.signal.cpxtrace.instantaneous_frequency

instantaneous_frequency(data, fs, fk)[source]

Instantaneous frequency of a signal.

Computes the instantaneous frequency of the given data which can be windowed or not. The instantaneous frequency is determined by the time derivative of the analytic signal of the input data.

Parameters
  • data (ndarray) – Data to determine instantaneous frequency of.

  • fs – Sampling frequency.

  • fk – Coefficients for calculating time derivatives (calculated via central difference).

Returns

omega[, domega] - Instantaneous frequency of input data, Time derivative of instantaneous frequency (windowed only).