LibXtract 0.6.2
xtract_scalar.h
Go to the documentation of this file.
1/* libxtract feature extraction library
2 *
3 * Copyright (C) 2006 Jamie Bullock
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
18 * USA.
19 */
20
23#ifndef XTRACT_SCALAR_H
24#define XTRACT_SCALAR_H
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
38void test(void);
39
47int xtract_mean(const float *data, const int N, const void *argv, float *result);
48
56int xtract_variance(const float *data, const int N, const void *argv, float *result);
57
65int xtract_standard_deviation(const float *data, const int N, const void *argv, float *result);
66
74int xtract_average_deviation(const float *data, const int N, const void *argv, float *result);
75
83int xtract_skewness(const float *data, const int N, const void *argv, float *result);
84
92int xtract_kurtosis(const float *data, const int N, const void *argv, float *result);
93
101int xtract_spectral_mean(const float *data, const int N, const void *argv, float *result);
102
111int xtract_spectral_variance(const float *data, const int N, const void *argv, float *result);
112
120int xtract_spectral_standard_deviation(const float *data, const int N, const void *argv, float *result);
121
129int xtract_spectral_average_deviation(const float *data, const int N, const void *argv, float *result);
130
138int xtract_spectral_skewness(const float *data, const int N, const void *argv, float *result);
139
147int xtract_spectral_kurtosis(const float *data, const int N, const void *argv, float *result);
148
159int xtract_spectral_centroid(const float *data, const int N, const void *argv, float *result);
160
168int xtract_irregularity_k(const float *data, const int N, const void *argv, float *result);
169
177int xtract_irregularity_j(const float *data, const int N, const void *argv, float *result);
178
189int xtract_tristimulus_1(const float *data, const int N, const void *argv, float *result);
190int xtract_tristimulus_2(const float *data, const int N, const void *argv, float *result);
191int xtract_tristimulus_3(const float *data, const int N, const void *argv, float *result);
192
200int xtract_smoothness(const float *data, const int N, const void *argv, float *result);
201
209int xtract_spread(const float *data, const int N, const void *argv, float *result);
210
211/* Zero crossing rate */
212
220int xtract_zcr(const float *data, const int N, const void *argv, float *result);
221
229int xtract_rolloff(const float *data, const int N, const void *argv, float *result);
230
241int xtract_loudness(const float *data, const int N, const void *argv, float *result);
242
252int xtract_flatness(const float *data, const int N, const void *argv, float *result);
253
264int xtract_flatness_db(const float *data, const int N, const void *argv, float *result);
265
273int xtract_tonality(const float *data, const int N, const void *argv, float *result);
274
282int xtract_noisiness(const float *data, const int N, const void *argv, float *result);
283
291int xtract_rms_amplitude(const float *data, const int N, const void *argv, float *result);
292
300int xtract_spectral_inharmonicity(const float *data, const int N, const void *argv, float *result);
301
309int xtract_crest(const float *data, const int N, const void *argv, float *result);
310
318int xtract_power(const float *data, const int N, const void *argv, float *result);
319
320/* Odd to even harmonic ratio */
328int xtract_odd_even_ratio(const float *data, const int N, const void *argv, float *result);
329
337int xtract_sharpness(const float *data, const int N, const void *argv, float *result);
338
346int xtract_spectral_slope(const float *data, const int N, const void *argv, float *result);
347
356int xtract_lowest_value(const float *data, const int N, const void *argv, float *result);
357
366int xtract_highest_value(const float *data, const int N, const void *argv, float *result);
367
376int xtract_sum(const float *data, const int N, const void *argv, float *result);
377
387int xtract_hps(const float *data, const int N, const void *argv, float *result);
388
401int xtract_f0(const float *data, const int N, const void *argv, float *result);
402
413int xtract_failsafe_f0(const float *data, const int N, const void *argv, float *result);
414
423int xtract_nonzero_count(const float *data, const int N, const void *argv, float *result);
424
427#ifdef __cplusplus
428}
429#endif
430
431#endif
432
433
434
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_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_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_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_spectral_mean(const float *data, const int N, const void *argv, float *result)
Extract the mean of an input spectrum.
int xtract_mean(const float *data, const int N, const void *argv, float *result)
Extract the mean 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_spectral_average_deviation(const float *data, const int N, const void *argv, float *result)
Extract the average deviation of an input 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)
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_sharpness(const float *data, const int N, const void *argv, float *result)
Extract the Sharpness 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_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.
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_kurtosis(const float *data, const int N, const void *argv, float *result)
Extract the kurtosis of an input vector.
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_spectral_kurtosis(const float *data, const int N, const void *argv, float *result)
Extract the kurtosis of an input 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)
int xtract_spectral_variance(const float *data, const int N, const void *argv, float *result)
Extract the variance of an input spectrum.
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_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_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_spectral_skewness(const float *data, const int N, const void *argv, float *result)
Extract the skewness of an input spectrum.
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,...
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_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_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_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_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_spectral_standard_deviation(const float *data, const int N, const void *argv, float *result)
Extract the deviation of an input spectrum.
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...
int xtract_standard_deviation(const float *data, const int N, const void *argv, float *result)
Extract the deviation of an input vector.
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_variance(const float *data, const int N, const void *argv, float *result)
Extract the variance of an input vector.
int xtract_spectral_centroid(const float *data, const int N, const void *argv, float *result)
Extract the centroid of an input vector.
int xtract_spectral_inharmonicity(const float *data, const int N, const void *argv, float *result)
Extract the Inharmonicity of an input vector.
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_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)