LibXtract 1.6.0
xtract_helper.h
Go to the documentation of this file.
1/* Part of LibXtract
2 *
3 * SPDX-FileCopyrightText: 2007 Jamie Bullock
4 * SPDX-License-Identifier: Zlib
5 */
6
8
9#ifndef XTRACT_HELPER_H
10#define XTRACT_HELPER_H
11
12#ifdef __cplusplus
13extern "C"
14{
15#endif
16
17#ifdef _MSC_VER
18#ifndef __cplusplus
19 typedef int bool;
20#define false 0
21#define true 1
22#endif
23#else
24#include <stdbool.h>
25#endif
26
36
47 int xtract_windowed(const double *data, const int N, const void *argv, double *result);
48
61 int xtract_features_from_subframes(const double *data, const int N, const int feature, const void *argv, double *result);
62
64 int xtract_is_denormal(double const d);
65
67 bool xtract_is_poweroftwo(unsigned int x);
68
79 int xtract_smoothed(const double *data, const int N, const void *argv, double *result);
80
82
83#ifdef __cplusplus
84}
85#endif
86
87#endif
int xtract_windowed(const double *data, const int N, const void *argv, double *result)
Apply a window function to an array of length N.
bool xtract_is_poweroftwo(unsigned int x)
Test whether a number is a power of two.
int xtract_features_from_subframes(const double *data, const int N, const int feature, const void *argv, double *result)
Divides the array pointed to by *data into two subframes, and applies a given feature to each subfram...
int xtract_is_denormal(double const d)
Test whether a number is denormal.
int xtract_smoothed(const double *data, const int N, const void *argv, double *result)
Smooth a vector.