soundscapecode.kurtosis
- soundscapecode.kurtosis(data: ndarray) float
Calculates the kurtosis for sound data.
Parameters
- data: np.ndarray
an array-like with shape (n, 1)
Returns
- float
The kurtosois
Raises
- AttributeError
if either data input is not a vector
Examples
>>> import numpy as np >>> np.random.seed(0) >>> import soundscapecode as ssc >>> fs = 48000 >>> sound = np.random.rand(fs*60,1) >>> ssc.kurtosis(sound) 1.799334080600504