pub enum SpecShape {
Centroid,
Spread,
Skewness,
Kurtosis,
Slope,
Decrease,
Rolloff,
}
Expand description
Spectral shape descriptor
The following descriptors are described in:
Geoffroy Peeters, A large set of audio features for sound description (similarity and classification) in the CUIDADO project, CUIDADO I.S.T. Project Report 2004 (pdf)
Variants§
Centroid
Spectral centroid
The spectral centroid represents the barycenter of the spectrum.
Note: This function returns the result in bin. To get the spectral centroid in Hz, bintofreq()
should be used.
Spread
Spectral spread
The spectral spread is the variance of the spectral distribution around its centroid.
See also Standard deviation on Wikipedia.
Skewness
Spectral skewness
Similarly, the skewness is computed from the third order moment of the spectrum. A negative skewness indicates more energy on the lower part of the spectrum. A positive skewness indicates more energy on the high frequency of the spectrum.
See also Skewness on Wikipedia.
Kurtosis
Spectral kurtosis
The kurtosis is a measure of the flatness of the spectrum, computed from the fourth order moment.
See also Kurtosis on Wikipedia.
Slope
Spectral slope
The spectral slope represents decreasing rate of the spectral amplitude, computed using a linear regression.
Decrease
Spectral decrease
The spectral decrease is another representation of the decreasing rate, based on perceptual criteria.
Rolloff
Spectral roll-off
This function returns the bin number below which 95% of the spectrum energy is found.
Trait Implementations§
Source§impl AsNativeStr for SpecShape
impl AsNativeStr for SpecShape
Source§fn as_native_str(&self) -> &'static str
fn as_native_str(&self) -> &'static str
"energy\0"
)