diff options
author | Jamie Bullock <jamie@jamiebullock.com> | 2013-01-09 12:45:29 +0000 |
---|---|---|
committer | Jamie Bullock <jamie@jamiebullock.com> | 2013-01-09 12:45:29 +0000 |
commit | c277634b13117e721e43f34a09cafb93c725fa3f (patch) | |
tree | b4f57d1cf0c430eb700df37b074abd7e4e0acf17 /src/helper.c | |
parent | 812e693b8c025c73ff5cddae3581b547465ab915 (diff) | |
download | LibXtract-c277634b13117e721e43f34a09cafb93c725fa3f.tar.gz LibXtract-c277634b13117e721e43f34a09cafb93c725fa3f.tar.bz2 LibXtract-c277634b13117e721e43f34a09cafb93c725fa3f.zip |
switched from single to double precision througout. closes #9
Diffstat (limited to 'src/helper.c')
-rw-r--r-- | src/helper.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/helper.c b/src/helper.c index 2a050e9..de33ffa 100644 --- a/src/helper.c +++ b/src/helper.c @@ -35,14 +35,14 @@ #define INDEX 1 #endif -int xtract_windowed(const float *data, const int N, const void *argv, float *result) +int xtract_windowed(const double *data, const int N, const void *argv, double *result) { int n; - const float *window; + const double *window; n = N; - window = (const float *)argv; + window = (const double *)argv; while(n--) result[n] = data[n] * window[n]; @@ -51,12 +51,12 @@ int xtract_windowed(const float *data, const int N, const void *argv, float *res } -int xtract_features_from_subframes(const float *data, const int N, const int feature, const void *argv, float *result) +int xtract_features_from_subframes(const double *data, const int N, const int feature, const void *argv, double *result) { - const float *frame1, + const double *frame1, *frame2; - float *result1, + double *result1, *result2; int n, rv; |