comparison src/libxtract.c @ 10:998623a98706

Added XTRACT macro
author Jamie Bullock <jamie@postlude.co.uk>
date Sun, 08 Oct 2006 15:05:02 +0000
parents cac976b2a69d
children 81eb5810a301
comparison
equal deleted inserted replaced
9:90b3a3a25d99 10:998623a98706
16 * along with this program; if not, write to the Free Software 16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
18 * USA. 18 * USA.
19 */ 19 */
20 20
21 /* libxtract - library for feature extraction from 1D vectors
22 Copyright (C) 2006 Jamie Bullock
23
24 This program is free software; you can redistribute it and/or
25 modify it under the terms of the GNU General Public License
26 as published by the Free Software Foundation; either version 2
27 of the License, or (at your option) any later version.
28
29 This program is distributed in the hope that it will be useful,
30 but WITHOUT ANY WARRANTY; without even the implied warranty of
31 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 GNU General Public License for more details.
33
34 You should have received a copy of the GNU General Public License
35 along with this program; if not, write to the Free Software
36 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37 */
38
39
40 #include "xtract/libxtract.h" 21 #include "xtract/libxtract.h"
22 #define XTRACT
41 23
42 int(*xtract[])(float *, int, void *, float *) = { 24 int(*xtract[])(float *, int, void *, float *) = {
43 /* xtract_scalar.h */ 25 /* xtract_scalar.h */
44 xtract_mean, 26 xtract_mean,
45 xtract_variance, 27 xtract_variance,
67 xtract_odd_even_ratio, 49 xtract_odd_even_ratio,
68 xtract_sharpness, 50 xtract_sharpness,
69 xtract_slope, 51 xtract_slope,
70 xtract_lowest_match, 52 xtract_lowest_match,
71 xtract_hps, 53 xtract_hps,
72 xtract_f0, 54 xtract_f0,
73 /* xtract_vector.h */ 55 /* xtract_vector.h */
74 xtract_magnitude_spectrum, 56 xtract_magnitude_spectrum,
75 xtract_autocorrelation, 57 xtract_autocorrelation,
76 xtract_autocorrelation_fft, 58 xtract_autocorrelation_fft,
77 xtract_amdf, 59 xtract_amdf,
84 xtract_flux, 66 xtract_flux,
85 xtract_attack_time, 67 xtract_attack_time,
86 xtract_decay_time, 68 xtract_decay_time,
87 xtract_delta_feature 69 xtract_delta_feature
88 }; 70 };
71