diff options
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | src/scalar.c | 4 |
2 files changed, 2 insertions, 3 deletions
@@ -1,3 +1,4 @@ +Rationalise use of powf etc. vs pow Add spectral_flux Add geometric_mean Add spectral_mean, spectral_deviation, spectral_geometric_mean etc. diff --git a/src/scalar.c b/src/scalar.c index d85d28c..1a52bd0 100644 --- a/src/scalar.c +++ b/src/scalar.c @@ -53,8 +53,7 @@ int xtract_variance(const float *data, const int N, const void *argv, float *res int xtract_standard_deviation(const float *data, const int N, const void *argv, float *result){ - //*result = sqrt(*(float *)argv); - *result = sqrt(-40.); + *result = sqrt(*(float *)argv); return XTRACT_SUCCESS; } @@ -451,7 +450,6 @@ int xtract_tonality(const float *data, const int N, const void *argv, float *res sfmdb = sfm / -60.f; *result = XTRACT_MIN(sfmdb, 1); - //*result = sfmdb; return XTRACT_SUCCESS; } |