maad.sound.avg_power_spectro
- maad.sound.avg_power_spectro(Sxx_power)[source]
Computes the average of a power spectrogram along the time axis.
- Parameters:
- Sxx_power2d ndarray of floats
Power spectrogram [Matrix]
- Returns:
- S_power_mean1d ndarray of floats
Power spectrum [Vector]
See also
Examples
>>> w, fs = maad.sound.load('../data/rock_savanna.wav') >>> Sxx_power,tn, fn, ext = maad.sound.spectrogram (w, fs)
Compute mean power spectrogram
>>> S_power_mean = maad.sound.avg_power_spectro(Sxx_power) >>> S_power_mean array([2.91313297e-04, 9.16802665e-04, 2.89179556e-04, 1.04767281e-04, 6.66154492e-05, 4.59636926e-05, 3.59688131e-05, 3.30869371e-05, ...