comparison xtract/xtract_scalar.h @ 11:81eb5810a301

Added spectral centroid
author Jamie Bullock <jamie@postlude.co.uk>
date Sun, 08 Oct 2006 15:31:40 +0000
parents cac976b2a69d
children 1aec087ddfca
comparison
equal deleted inserted replaced
10:998623a98706 11:81eb5810a301
80 * \param *argv: a pointer to an array of values representing the mean and standard deviation of the input vector 80 * \param *argv: a pointer to an array of values representing the mean and standard deviation of the input vector
81 * \param *result: the kurtosis of N values from the array pointed to by *data 81 * \param *result: the kurtosis of N values from the array pointed to by *data
82 */ 82 */
83 int xtract_kurtosis(float *data, int N, void *argv, float *result); 83 int xtract_kurtosis(float *data, int N, void *argv, float *result);
84 84
85 /** \brief Extract the kurtosis of an input vector
86 *
87 * \param *data: a pointer to the first element in an array of floats represeting a frequency spectrum of size N/2 and a magnitude peak spectrum of size N/2 (This is the output format of xtract_peaks)
88 * \param N: the number of elements to be considered
89 * \param *argv: a pointer to NULL
90 * \param *result: the centroid of the values pointed to by *data
91 */
92 int xtract_centroid(float *data, int N, void *argv, float *result);
93
85 /** \brief Calculate the Irregularity of an input vector using a method described by Krimphoff (1994) 94 /** \brief Calculate the Irregularity of an input vector using a method described by Krimphoff (1994)
86 * 95 *
87 * \param *data: a pointer to the first element in an array of floats representing the magnitude spectrum of an audio vector 96 * \param *data: a pointer to the first element in an array of floats representing the magnitude spectrum of an audio vector
88 * \param N: the number of elements to be considered 97 * \param N: the number of elements to be considered
89 * \param *argv: a pointer to NULL 98 * \param *argv: a pointer to NULL