maad.util.kurtosis

maad.util.kurtosis(x, axis=None)[source]

Compute the kurtosis (tailedness or curved or arching) of an audio signal.

Parameters:
xndarray of floats

1d signal or 2d matrix

axisinteger, optional, default is None

select the axis to compute the kurtosis The default is to compute the mean of the flattened array.

Returns:
kufloat or ndarray of floats

kurtosis of x if x is a 1d vector => single value if x is a 2d matrix => array of values corresponding to the number of points in the other axis

Examples

>>> from maad import sound, util
>>> s, fs = sound.load('../data/spinetail.wav')
>>> util.kurtosis(s)
24.711610834321217