obspy.signal.freqattributes.central_frequency_unwindowed

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.

Parameters:
  • data (ndarray) – Data to estimate central frequency from.

  • fs – Sampling frequency in Hz.

Returns:

cfreq - Central frequency in Hz