LibXtract  0.6.2
xtract_helper.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_HELPER_H
24 #define XTRACT_HELPER_H
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
50 int xtract_windowed(const float *data, const int N, const void *argv, float *result);
51 
64 int xtract_features_from_subframes(const float *data, const int N, const int feature, const void *argv, float *result);
65 
67 int xtract_is_denormal(double const d);
68 
71 #ifdef __cplusplus
72 }
73 #endif
74 
75 #endif
76 
77 
78 
int xtract_windowed(const float *data, const int N, const void *argv, float *result)
Apply a window function to an array of length N.
int xtract_is_denormal(double const d)
Test whether a number is denormal.
int xtract_features_from_subframes(const float *data, const int N, const int feature, const void *argv, float *result)
Divides the array pointed to by *data into two subframes, and applies a given feature to each subfram...