aboutsummaryrefslogtreecommitdiff
path: root/xtract/xtract_scalar.h
diff options
context:
space:
mode:
authorJamie Bullock <jamie@postlude.co.uk>2006-12-20 15:34:56 +0000
committerJamie Bullock <jamie@postlude.co.uk>2006-12-20 15:34:56 +0000
commit46ee1ba4b2e3eda3e14abfc969356f6dcb0c6dc0 (patch)
tree33d043207bb8845ef9cd6a9f6c6a99cfd55a35fa /xtract/xtract_scalar.h
parente5051b14a4642a6a6c6097c0ae24ecdfa53594e9 (diff)
downloadLibXtract-46ee1ba4b2e3eda3e14abfc969356f6dcb0c6dc0.tar.gz
LibXtract-46ee1ba4b2e3eda3e14abfc969356f6dcb0c6dc0.tar.bz2
LibXtract-46ee1ba4b2e3eda3e14abfc969356f6dcb0c6dc0.zip
Added new features: sum, highest_value, crest and noisiness
Diffstat (limited to 'xtract/xtract_scalar.h')
-rw-r--r--xtract/xtract_scalar.h28
1 files changed, 24 insertions, 4 deletions
diff --git a/xtract/xtract_scalar.h b/xtract/xtract_scalar.h
index c4618fa..8d8c446 100644
--- a/xtract/xtract_scalar.h
+++ b/xtract/xtract_scalar.h
@@ -271,15 +271,35 @@ int xtract_sharpness(const float *data, const int N, const void *argv, float *re
*/
int xtract_slope(const float *data, const int N, const void *argv, float *result);
-/** \brief Extract the value of the lowest value in an input vector that between two bounds
+/** \brief Extract the value of the lowest value in an input vector
*
* \param *data: a pointer to the first element in an array of floats
* \param N: the number of elements to be considered
- * \param *argv: a pointer to an array containing a lower and upper bounds for search, where lower < n < upper.
- * \param *result: a pointer to a value representing the lowest non-zero component in *data. If no match is found then -0 is returned.
+ * \param *argv: a pointer to a float representing the lower limit for the search. i.e. (*result > *argv) returns 1.
+ * \param *result: a pointer to a value representing the lowest component in *data that falls above a given threshold.
*
*/
-int xtract_lowest(const float *data, const int N, const void *argv, float *result);
+int xtract_lowest_value(const float *data, const int N, const void *argv, float *result);
+
+/** \brief Extract the value of the highest value in an input vector
+ *
+ * \param *data: a pointer to the first element in an array of floats
+ * \param N: the number of elements to be considered
+ * \param *argv: a pointer to NULL.
+ * \param *result: a pointer to a value representing the highest component in *data.
+ *
+ */
+int xtract_highest_value(const float *data, const int N, const void *argv, float *result);
+
+/** \brief Extract the sum of the values in an input vector
+ *
+ * \param *data: a pointer to the first element in an array of floats
+ * \param N: the number of elements to be considered
+ * \param *argv: a pointer to NULL.
+ * \param *result: a pointer to a value representing the sum of all of the values pointed to by *data.
+ *
+ */
+int xtract_sum(const float *data, const int N, const void *argv, float *result);
/** \brief Extract the Pitch of an input vector using Harmonic Product Spectrum (HPS) analysis
*