diff options
-rw-r--r-- | src/libxtract.c | 4 | ||||
-rw-r--r-- | xtract/xtract_scalar.h | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/libxtract.c b/src/libxtract.c index 80a710e..a77c990 100644 --- a/src/libxtract.c +++ b/src/libxtract.c @@ -27,13 +27,13 @@ int(*xtract[])(const float *, const int, const void *, float *) = { xtract_mean, xtract_variance, xtract_standard_deviation, - /* xtract_average_deviation, */ + xtract_average_deviation, xtract_skewness, xtract_kurtosis, xtract_spectral_mean, xtract_spectral_variance, xtract_spectral_standard_deviation, - xtract_spectral_average_deviation, + /* xtract_spectral_average_deviation, */ xtract_spectral_skewness, xtract_spectral_kurtosis, xtract_spectral_centroid, diff --git a/xtract/xtract_scalar.h b/xtract/xtract_scalar.h index 96834a0..ec286c9 100644 --- a/xtract/xtract_scalar.h +++ b/xtract/xtract_scalar.h @@ -71,8 +71,8 @@ int xtract_standard_deviation(const float *data, const int N, const void *argv, * \param *argv: a pointer to a float representing the mean of the input vector * \param *result: the average deviation of N values from the array pointed to by *data */ -/*int xtract_average_deviation(const float *data, const int N, const void *argv, float *result); - */ +int xtract_average_deviation(const float *data, const int N, const void *argv, float *result); + /** \brief Extract the skewness of an input vector * @@ -127,7 +127,9 @@ int xtract_spectral_standard_deviation(const float *data, const int N, const voi * \param *argv: a pointer to a float representing the spectral mean of the input spectrum * \param *result: the average deviation of the spectrum pointed to by *data */ +/* int xtract_spectral_average_deviation(const float *data, const int N, const void *argv, float *result); +*/ /** \brief Extract the skewness of an input spectrum * |