central_frequency_unwindowed(data, fs)[source]

Central frequency of a signal.

Computes the central frequency of the given data (a single waveform). The central frequency is a measure of the frequency where the power is concentrated. It corresponds to the second moment of the power spectral density function.

The central frequency is returned in Hz.

  • data (ndarray) Data to estimate central frequency from.
  • fs Sampling frequency in Hz.

cfreq - Central frequency in Hz