Functions | |
void | test (void) |
int | xtract_mean (const float *data, const int N, const void *argv, float *result) |
Extract the mean of an input vector. | |
int | xtract_variance (const float *data, const int N, const void *argv, float *result) |
Extract the variance of an input vector. | |
int | xtract_standard_deviation (const float *data, const int N, const void *argv, float *result) |
Extract the deviation of an input vector. | |
int | xtract_average_deviation (const float *data, const int N, const void *argv, float *result) |
Extract the average deviation of an input vector. | |
int | xtract_skewness (const float *data, const int N, const void *argv, float *result) |
Extract the skewness of an input vector. | |
int | xtract_kurtosis (const float *data, const int N, const void *argv, float *result) |
Extract the kurtosis of an input vector. | |
int | xtract_spectral_mean (const float *data, const int N, const void *argv, float *result) |
Extract the mean of an input spectrum. | |
int | xtract_spectral_variance (const float *data, const int N, const void *argv, float *result) |
Extract the variance of an input spectrum. | |
int | xtract_spectral_standard_deviation (const float *data, const int N, const void *argv, float *result) |
Extract the deviation of an input spectrum. | |
int | xtract_spectral_average_deviation (const float *data, const int N, const void *argv, float *result) |
Extract the average deviation of an input spectrum. | |
int | xtract_spectral_skewness (const float *data, const int N, const void *argv, float *result) |
Extract the skewness of an input spectrum. | |
int | xtract_spectral_kurtosis (const float *data, const int N, const void *argv, float *result) |
Extract the kurtosis of an input spectrum. | |
int | xtract_spectral_centroid (const float *data, const int N, const void *argv, float *result) |
Extract the centroid of an input vector. | |
int | xtract_irregularity_k (const float *data, const int N, const void *argv, float *result) |
Calculate the Irregularity of an input vector using a method described by Krimphoff (1994). | |
int | xtract_irregularity_j (const float *data, const int N, const void *argv, float *result) |
Calculate the Irregularity of an input vector using a method described by Jensen (1999). | |
int | xtract_tristimulus_1 (const float *data, const int N, const void *argv, float *result) |
Calculate the Tristimulus of an input vector using a method described by Pollard and Jansson (1982). | |
int | xtract_tristimulus_2 (const float *data, const int N, const void *argv, float *result) |
int | xtract_tristimulus_3 (const float *data, const int N, const void *argv, float *result) |
int | xtract_smoothness (const float *data, const int N, const void *argv, float *result) |
Extract the smoothness of an input vector using a method described by McAdams (1999). | |
int | xtract_spread (const float *data, const int N, const void *argv, float *result) |
Extract the spectral spread of an input vector using a method described by Casagrande(2005). | |
int | xtract_zcr (const float *data, const int N, const void *argv, float *result) |
Extract the zero crossing rate of an input vector. | |
int | xtract_rolloff (const float *data, const int N, const void *argv, float *result) |
Extract the spectral rolloff of an input vector using a method described by Bee Suan Ong (2005). | |
int | xtract_loudness (const float *data, const int N, const void *argv, float *result) |
Extract the 'total loudness' of an input vector using a method described by Moore, Glasberg et al (2005). | |
int | xtract_flatness (const float *data, const int N, const void *argv, float *result) |
Extract the spectral flatness measure of an input vector, where the flatness measure (SFM) is defined as the ratio of the geometric mean to the arithmetic mean of a magnitude spectrum. | |
int | xtract_flatness_db (const float *data, const int N, const void *argv, float *result) |
Extract the LOG spectral flatness measure of an input vector. | |
int | xtract_tonality (const float *data, const int N, const void *argv, float *result) |
Extract the tonality factor of an input vector using a method described by Peeters 2003. | |
int | xtract_noisiness (const float *data, const int N, const void *argv, float *result) |
Extract the noisiness of an input vector using a method described by Tae Hong Park (2000). | |
int | xtract_rms_amplitude (const float *data, const int N, const void *argv, float *result) |
Extract the RMS amplitude of an input vector using a method described by Tae Hong Park (2000). | |
int | xtract_spectral_inharmonicity (const float *data, const int N, const void *argv, float *result) |
Extract the Inharmonicity of an input vector. | |
int | xtract_crest (const float *data, const int N, const void *argv, float *result) |
Extract the spectral crest of an input vector using a method described by Peeters (2003). | |
int | xtract_power (const float *data, const int N, const void *argv, float *result) |
Extract the Spectral Power of an input vector using a method described by Bee Suan Ong (2005). | |
int | xtract_odd_even_ratio (const float *data, const int N, const void *argv, float *result) |
Extract the Odd to even harmonic ratio of an input vector. | |
int | xtract_sharpness (const float *data, const int N, const void *argv, float *result) |
Extract the Sharpness of an input vector. | |
int | xtract_spectral_slope (const float *data, const int N, const void *argv, float *result) |
Extract the Slope of an input vector using a method described by Peeters(2003). | |
int | xtract_lowest_value (const float *data, const int N, const void *argv, float *result) |
Extract the value of the lowest value in an input vector. | |
int | xtract_highest_value (const float *data, const int N, const void *argv, float *result) |
Extract the value of the highest value in an input vector. | |
int | xtract_sum (const float *data, const int N, const void *argv, float *result) |
Extract the sum of the values in an input vector. | |
int | xtract_hps (const float *data, const int N, const void *argv, float *result) |
Extract the Pitch of an input vector using Harmonic Product Spectrum (HPS) analysis. | |
int | xtract_f0 (const float *data, const int N, const void *argv, float *result) |
Extract the fundamental frequency of an input vector. | |
int | xtract_failsafe_f0 (const float *data, const int N, const void *argv, float *result) |
Extract the fundamental frequency of an input vector. | |
int | xtract_nonzero_count (const float *data, const int N, const void *argv, float *result) |
Extract the number of non-zero elements in an input vector. |
Functions that extract a feature as a single value from an input vector
int xtract_average_deviation | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the average deviation of an input vector.
*data,: | a pointer to the first element in an array of floats
|
int xtract_crest | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the spectral crest of an input vector using a method described by Peeters (2003).
*data,: | a pointer to NULL
|
int xtract_f0 | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the fundamental frequency of an input vector.
*data,: | a pointer to the first element in an array of floats representing an audio vector
|
int xtract_failsafe_f0 | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the fundamental frequency of an input vector.
*data,: | a pointer to the first element in an array of floats representing an audio vector
|
int xtract_flatness | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the spectral flatness measure of an input vector, where the flatness measure (SFM) is defined as the ratio of the geometric mean to the arithmetic mean of a magnitude spectrum.
*data,: | a pointer to the first element in an array of floats representing the magnitude coefficients from the spectrum of an audio vector, (e.g. the first half of the array pointed to by *result from xtract_spectrum(). Alternatively the magnitudes from a number of 'subbands' can be used by using *result from xtract_bands().
|
int xtract_flatness_db | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the LOG spectral flatness measure of an input vector.
*data,: | a pointer to NULL.
|
int xtract_highest_value | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the value of the highest value in an input vector.
*data,: | a pointer to the first element in an array of floats
|
int xtract_hps | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the Pitch of an input vector using Harmonic Product Spectrum (HPS) analysis.
*data,: | a pointer to the first element in an array of floats representing the magnitude coefficients from the spectrum of an audio vector, (e.g. the first half of the array pointed to by *result from xtract_spectrum().
|
int xtract_irregularity_j | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Calculate the Irregularity of an input vector using a method described by Jensen (1999).
*data,: | a pointer to the first element in an array of floats representing the magnitude coefficients from the spectrum of an audio vector, (e.g. the first half of the array pointed to by *result from xtract_spectrum().
|
int xtract_irregularity_k | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Calculate the Irregularity of an input vector using a method described by Krimphoff (1994).
*data,: | a pointer to the first element in an array of floats representing the magnitude coefficients from the spectrum of an audio vector, (e.g. the first half of the array pointed to by *result from xtract_spectrum().
|
int xtract_kurtosis | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the kurtosis of an input vector.
*data,: | a pointer to the first element in an array of floats
|
int xtract_loudness | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the 'total loudness' of an input vector using a method described by Moore, Glasberg et al (2005).
*data,: | a pointer to the first element in an array of floats representing a set of BARK_BANDS bark coefficients
|
int xtract_lowest_value | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the value of the lowest value in an input vector.
*data,: | a pointer to the first element in an array of floats
|
int xtract_mean | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the mean of an input vector.
*data,: | a pointer to the first element
|
int xtract_noisiness | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the noisiness of an input vector using a method described by Tae Hong Park (2000).
*data,: | a pointer to NULL
|
int xtract_nonzero_count | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the number of non-zero elements in an input vector.
*data,: | a pointer to the first element in an array of floats
|
int xtract_odd_even_ratio | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the Odd to even harmonic ratio of an input vector.
*data,: | a pointer to the first element in an array of floats representing the amplitudes of the harmonic spectrum of an audio vector. It is sufficient to pass in a pointer to the first half of the array pointed to by *result from xtract_harmonic_spectrum().
|
int xtract_power | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the Spectral Power of an input vector using a method described by Bee Suan Ong (2005).
*data,: | a pointer to the first element in an array of floats representing the magnitude coefficients from the spectrum of an audio vector, (e.g. the first half of the array pointed to by *result from xtract_spectrum().
|
int xtract_rms_amplitude | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the RMS amplitude of an input vector using a method described by Tae Hong Park (2000).
*data,: | a pointer to the first element in an array of floats
|
int xtract_rolloff | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the spectral rolloff of an input vector using a method described by Bee Suan Ong (2005).
*data,: | a pointer to the first element in an array of floats representing the magnitude coefficients from the spectrum of an audio vector, (e.g. the first half of the array pointed to by *result from xtract_spectrum().
|
int xtract_sharpness | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the Sharpness of an input vector.
*data,: | a pointer to the first element in an array of floats representing the magnitude coefficients from the spectrum of an audio vector, (e.g. the first half of the array pointed to by *result from xtract_spectrum().
|
int xtract_skewness | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the skewness of an input vector.
*data,: | a pointer to the first element in an array of floats
|
int xtract_smoothness | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the smoothness of an input vector using a method described by McAdams (1999).
*data,: | a pointer to the first element in an array of floats representing the magnitude coefficients from the spectrum of an audio vector, (e.g. the first half of the array pointed to by *result from xtract_spectrum().
|
int xtract_spectral_average_deviation | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the average deviation of an input spectrum.
*data,: | a pointer to the first element in an array of floats representing the spectrum of an audio vector, (e.g. the array pointed to by *result from xtract_spectrum(), xtract_peak_spectrum() or xtract_harmonic_spectrum()).
|
int xtract_spectral_centroid | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the centroid of an input vector.
*data,: | a pointer to the first element in an array of floats representing the spectrum of an audio vector, (e.g. the array pointed to by *result from xtract_spectrum(), xtract_peak_spectrum() or xtract_harmonic_spectrum()).
|
int xtract_spectral_inharmonicity | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the Inharmonicity of an input vector.
*data,: | a pointer to the first element in an array of floats represeting a magnitude peak spectrum of size N/2, and a frequency spectrum of size N/2 (This is the output format of xtract_peak_spectrum())
|
int xtract_spectral_kurtosis | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the kurtosis of an input spectrum.
*data,: | a pointer to the first element in an array of floats representing the spectrum of an audio vector, (e.g. the array pointed to by *result from xtract_spectrum(), xtract_peak_spectrum() or xtract_harmonic_spectrum()).
|
int xtract_spectral_mean | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the mean of an input spectrum.
*data,: | a pointer to the first element in an array of floats representing the spectrum of an audio vector, (e.g. the array pointed to by *result from xtract_spectrum(), xtract_peak_spectrum() or xtract_harmonic_spectrum()).
|
int xtract_spectral_skewness | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the skewness of an input spectrum.
*data,: | a pointer to the first element in an array of floats representing the spectrum of an audio vector, (e.g. the array pointed to by *result from xtract_spectrum(), xtract_peak_spectrum() or xtract_harmonic_spectrum()).
|
int xtract_spectral_slope | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the Slope of an input vector using a method described by Peeters(2003).
*data,: | a pointer to the first element in an array of floats representing the spectrum of an audio vector, (e.g. the array pointed to by *result from xtract_spectrum(), xtract_peak_spectrum() or xtract_harmonic_spectrum()).
|
int xtract_spectral_standard_deviation | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the deviation of an input spectrum.
*data,: | a pointer to the first element in an array of floats representing the spectrum of an audio vector, (e.g. the array pointed to by *result from xtract_spectrum(), xtract_peak_spectrum() or xtract_harmonic_spectrum()).
|
int xtract_spectral_variance | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the variance of an input spectrum.
*data,: | a pointer to the first element in an array of floats representing the spectrum of an audio vector, (e.g. the array pointed to by *result from xtract_spectrum(), xtract_peak_spectrum() or xtract_harmonic_spectrum()).
|
int xtract_spread | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the spectral spread of an input vector using a method described by Casagrande(2005).
*data,: | a pointer to the first element in an array of floats representing the magnitude coefficients from the spectrum of an audio vector, (e.g. the first half of the array pointed to by *result from xtract_spectrum().
|
int xtract_standard_deviation | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the deviation of an input vector.
*data,: | a pointer to the first element in an array of floats
|
int xtract_sum | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the sum of the values in an input vector.
*data,: | a pointer to the first element in an array of floats
|
int xtract_tonality | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the tonality factor of an input vector using a method described by Peeters 2003.
*data,: | a pointer to NULL.
|
int xtract_tristimulus_1 | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Calculate the Tristimulus of an input vector using a method described by Pollard and Jansson (1982).
*data,: | a pointer to the first element in an array of floats representing the magnitude coefficients of the harmonic spectrum of an audio vector e.g. a pointer to the first half of the array pointed to by *result from xtract_harmonics(). The amplitudes of the peak spectrum (e.g. *result from xtract_peak_spectrum()) can be used if one wishes to consider all partials not just harmonics.
|
int xtract_variance | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the variance of an input vector.
*data,: | a pointer to the first element in an array of floats
|
int xtract_zcr | ( | const float * | data, | |
const int | N, | |||
const void * | argv, | |||
float * | result | |||
) |
Extract the zero crossing rate of an input vector.
*data,: | a pointer to the first element in an array of floats
|