LibXtract 1.6.0
xtract_scalar.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int xtract_mean (const double *data, const int N, const void *argv, double *result)
 Extract the mean of an input vector.
int xtract_variance (const double *data, const int N, const void *argv, double *result)
 Extract the variance of an input vector.
int xtract_standard_deviation (const double *data, const int N, const void *argv, double *result)
 Extract the deviation of an input vector.
int xtract_average_deviation (const double *data, const int N, const void *argv, double *result)
 Extract the average deviation of an input vector.
int xtract_skewness (const double *data, const int N, const void *argv, double *result)
 Extract the skewness of an input vector.
int xtract_kurtosis (const double *data, const int N, const void *argv, double *result)
 Extract the kurtosis of an input vector.
int xtract_spectral_mean (const double *data, const int N, const void *argv, double *result)
 Extract the mean of an input spectrum.
int xtract_spectral_variance (const double *data, const int N, const void *argv, double *result)
 Extract the variance of an input spectrum.
int xtract_spectral_standard_deviation (const double *data, const int N, const void *argv, double *result)
 Extract the deviation of an input spectrum.
int xtract_spectral_skewness (const double *data, const int N, const void *argv, double *result)
 Extract the skewness of an input spectrum.
int xtract_spectral_kurtosis (const double *data, const int N, const void *argv, double *result)
 Extract the kurtosis of an input spectrum.
int xtract_spectral_centroid (const double *data, const int N, const void *argv, double *result)
 Extract the centroid of an input vector.
int xtract_irregularity_k (const double *data, const int N, const void *argv, double *result)
 Calculate the Irregularity of an input vector using a method described by Krimphoff (1994).
int xtract_irregularity_j (const double *data, const int N, const void *argv, double *result)
 Calculate the Irregularity of an input vector using a method described by Jensen (1999).
int xtract_tristimulus_1 (const double *data, const int N, const void *argv, double *result)
 Calculate the first order Tristimulus of an input vector using a method described by Pollard and Jansson (1982).
int xtract_tristimulus_2 (const double *data, const int N, const void *argv, double *result)
 Calculate the second order Tristimulus of an input vector using a method described by Pollard and Jansson (1982).
int xtract_tristimulus_3 (const double *data, const int N, const void *argv, double *result)
 Calculate the third order Tristimulus of an input vector using a method described by Pollard and Jansson (1982).
int xtract_smoothness (const double *data, const int N, const void *argv, double *result)
 Extract the smoothness of an input vector using a method described by McAdams (1999).
int xtract_spread (const double *data, const int N, const void *argv, double *result)
 Extract the spectral spread of an input vector using a method described by Casagrande(2005).
int xtract_zcr (const double *data, const int N, const void *argv, double *result)
 Extract the zero crossing rate of an input vector.
int xtract_rolloff (const double *data, const int N, const void *argv, double *result)
 Extract the spectral rolloff of an input vector using a method described by Bee Suan Ong (2005).
int xtract_loudness (const double *data, const int N, const void *argv, double *result)
 Extract the 'total loudness' of an input vector using a method described by Moore, Glasberg et al (2005).
int xtract_flatness (const double *data, const int N, const void *argv, double *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 double *data, const int N, const void *argv, double *result)
 Extract the LOG spectral flatness measure of an input vector.
int xtract_tonality (const double *data, const int N, const void *argv, double *result)
 Extract the tonality factor of an input vector using a method described by Peeters 2003.
int xtract_noisiness (const double *data, const int N, const void *argv, double *result)
 Extract the noisiness of an input vector using a method described by Tae Hong Park (2000).
int xtract_rms_amplitude (const double *data, const int N, const void *argv, double *result)
 Extract the RMS amplitude of an input vector using a method described by Tae Hong Park (2000).
int xtract_spectral_inharmonicity (const double *data, const int N, const void *argv, double *result)
 Extract the Inharmonicity of an input vector.
int xtract_crest (const double *data, const int N, const void *argv, double *result)
 Extract the spectral crest of an input vector using a method described by Peeters (2003).
int xtract_power (const double *data, const int N, const void *argv, double *result)
 Extract the Spectral Power of an input vector using a method described by Bee Suan Ong (2005).
int xtract_odd_even_ratio (const double *data, const int N, const void *argv, double *result)
 Extract the Odd to even harmonic ratio of an input vector.
int xtract_sharpness (const double *data, const int N, const void *argv, double *result)
 Extract the Sharpness of an input vector.
int xtract_spectral_slope (const double *data, const int N, const void *argv, double *result)
 Extract the Slope of an input vector using a method described by Peeters(2003).
int xtract_lowest_value (const double *data, const int N, const void *argv, double *result)
 Extract the value of the lowest value in an input vector.
int xtract_highest_value (const double *data, const int N, const void *argv, double *result)
 Extract the value of the highest value in an input vector.
int xtract_sum (const double *data, const int N, const void *argv, double *result)
 Extract the sum of the values in an input vector.
int xtract_hps (const double *data, const int N, const void *argv, double *result)
 Extract the Pitch of an input vector using Harmonic Product Spectrum (HPS) analysis.
int xtract_f0 (const double *data, const int N, const void *argv, double *result)
 Extract the fundamental frequency of an input vector.
int xtract_failsafe_f0 (const double *data, const int N, const void *argv, double *result)
 Extract the fundamental frequency of an input vector.
int xtract_wavelet_f0 (const double *data, const int N, const void *argv, double *result)
 Extract the fundamental frequency of an input vector using wavelet-based method.
int xtract_mcleod_f0 (const double *data, const int N, const void *argv, double *result)
 Extract the fundamental frequency using the McLeod Pitch Method.
int xtract_midicent (const double *data, const int N, const void *argv, double *result)
 Convenience function to convert a frequency in Hertz to a "pitch" value in MIDI cents.
int xtract_nonzero_count (const double *data, const int N, const void *argv, double *result)
 Extract the number of non-zero elements in an input vector.
int xtract_peak (const double *data, const int N, const void *argv, double *result)
 Report whether the 'current' value is a peak.
int xtract_median (const double *data, const int N, const void *argv, double *result)
 Extract the median of an input vector.
int xtract_median_absolute_deviation (const double *data, const int N, const void *argv, double *result)
 Extract the median absolute deviation of an input vector.
int xtract_hjorth_activity (const double *data, const int N, const void *argv, double *result)
 Extract the Hjorth activity of an input vector: its variance, with N as the divisor.
int xtract_hjorth_mobility (const double *data, const int N, const void *argv, double *result)
 Extract the Hjorth mobility of an input vector: the square root of the ratio of the activity of its first difference to its own activity.
int xtract_hjorth_complexity (const double *data, const int N, const void *argv, double *result)
 Extract the Hjorth complexity of an input vector: the ratio of the mobility of its first difference to its own mobility.
int xtract_time_reversal_asymmetry (const double *data, const int N, const void *argv, double *result)
 Extract the time reversal asymmetry statistic of an input vector: the mean over every position of the product of the value one lag ahead with the difference between the squares of the values two lags ahead and at the position.
int xtract_spectral_entropy (const double *data, const int N, const void *argv, double *result)
 Extract the spectral entropy of a spectrum: the Shannon entropy of the spectrum normalised to sum to 1, divided by the entropy of a flat spectrum of the same length.
int xtract_petrosian_fractal_dimension (const double *data, const int N, const void *argv, double *result)
 Extract the Petrosian fractal dimension of an input vector, from the number of sign changes in its first difference.
int xtract_katz_fractal_dimension (const double *data, const int N, const void *argv, double *result)
 Extract the Katz fractal dimension of an input vector, from the length of its path and its greatest distance from the first element.
int xtract_higuchi_fractal_dimension (const double *data, const int N, const void *argv, double *result)
 Extract the Higuchi fractal dimension of an input vector: the slope of the log of its curve length against the log of the scale, over scales 1 to k_max.
int xtract_permutation_entropy (const double *data, const int N, const void *argv, double *result)
 Extract the permutation entropy of an input vector: the Shannon entropy of the ordinal patterns of its windows, divided by the entropy of every pattern being equally likely.
int xtract_lempel_ziv_complexity (const double *data, const int N, const void *argv, double *result)
 Extract the Lempel-Ziv complexity of an input vector: the number of distinct phrases in its exhaustive parse once each element is reduced to whether it exceeds a threshold, normalised by N over log2 N so that a random series scores about 1.
int xtract_sample_entropy (const double *data, const int N, const void *argv, double *result)
 Extract the sample entropy of an input vector: the negative log of the fraction of its pairs of matching templates of a given length that still match when extended by one element, where two templates match when no pair of corresponding elements differs by more than the tolerance.
int xtract_approximate_entropy (const double *data, const int N, const void *argv, double *result)
 Extract the approximate entropy of an input vector: the difference between the mean log fraction of templates matching each template of a given length and the same for templates one element longer, where each template matches itself and two templates match when no pair of corresponding elements differs by more than the tolerance.
int xtract_periodicity (const double *data, const int N, const void *argv, double *result)
 Extract the periodicity of an input vector: the height of the highest key maximum of its normalised square difference function, the measure the McLeod pitch method selects its pitch peak from.
int xtract_signal_confidence (const double *data, const int N, const void *argv, double *result)
 Extract the confidence of the McLeod pitch method's fundamental frequency estimate for an input vector: the height of the key maximum of its normalised square difference function that xtract_mcleod_f0() takes as the pitch peak.
int xtract_decay_rate (const double *data, const int N, const void *argv, double *result)
 Extract the decay rate of an envelope: the least-squares slope of the natural log of its elements against time, over the elements from its maximum onwards that exceed the threshold fraction of the maximum.
int xtract_temporal_centroid (const double *data, const int N, const void *argv, double *result)
 Extract the temporal centroid of an envelope: the position of its centre of gravity, with each element weighting its own position, as a fraction of the length.
int xtract_max_position (const double *data, const int N, const void *argv, double *result)
 Extract the position of the largest value in an input vector as a fraction of the length.
int xtract_min_position (const double *data, const int N, const void *argv, double *result)
 Extract the position of the smallest value in an input vector as a fraction of the length.
int xtract_peak_asymmetry (const double *data, const int N, const void *argv, double *result)
 Extract the peak asymmetry of an envelope: the energy from its maximum to the end over the energy from the start to its maximum, the maximum counting in both, so that a shape symmetric about its peak gives 1.

Detailed Description

: declares functions that extract a feature as a single value from an input vector