maad.sound.avg_amplitude_spectro
- maad.sound.avg_amplitude_spectro(Sxx_ampli)[source]
Computes the average of an amplitude spectrogram along the time axis.
- Parameters:
- Sxx_ampli2d ndarray of floats
Amplitude spectrogram [Matrix]
- Returns:
- S_ampli_mean1d ndarray of floats
Amplitude spectrum [Vector]
See also
Examples
>>> w, fs = maad.sound.load('../data/rock_savanna.wav') >>> Sxx_amplitude,tn, fn, ext = maad.sound.spectrogram (w, fs, mode="amplitude")
Compute mean amplitude spectrogram
>>> S_amplitude_mean = maad.sound.avg_amplitude_spectro(Sxx_amplitude) >>> S_amplitude_mean array([0.0170679 , 0.03027875, 0.01700528, 0.01023559, 0.00816183, 0.00677965, 0.0059974 , 0.00575212, 0.00700752, 0.00926279, ...