[][src]Enum aubio_rs::SpecShape

pub enum SpecShape {
    Centroid,
    Spread,
    Skewness,
    Kurtosis,
    Slope,
    Decrease,
    Rolloff,
}

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

impl AsNativeStr for SpecShape[src]

impl AsRef<str> for SpecShape[src]

impl Clone for SpecShape[src]

impl Copy for SpecShape[src]

impl Debug for SpecShape[src]

impl Display for SpecShape[src]

impl Eq for SpecShape[src]

impl FromStr for SpecShape[src]

type Err = Error

The associated error which can be returned from parsing.

impl Hash for SpecShape[src]

impl PartialEq<SpecShape> for SpecShape[src]

impl SpecMethod for SpecShape[src]

impl StructuralEq for SpecShape[src]

impl StructuralPartialEq for SpecShape[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.