comparison xtract/xtract_scalar.h @ 225:62e797c2974a

correction to xtract_odd_even_ratio
author Sean Enderby <sean.enderby@gmail.com>
date Mon, 24 Feb 2014 14:32:04 +0000
parents 02b7b3f96713
children 223febe2688b
comparison
equal deleted inserted replaced
224:5ca682ce3392 225:62e797c2974a
322 int xtract_power(const double *data, const int N, const void *argv, double *result); 322 int xtract_power(const double *data, const int N, const void *argv, double *result);
323 323
324 /* Odd to even harmonic ratio */ 324 /* Odd to even harmonic ratio */
325 /** \brief Extract the Odd to even harmonic ratio of an input vector 325 /** \brief Extract the Odd to even harmonic ratio of an input vector
326 * 326 *
327 * \param *data: a pointer to the first element in an array of doubles representing the amplitudes of the harmonic spectrum of an audio vector. It is sufficient to pass in a pointer to the first half of the array pointed to by *result from xtract_harmonic_spectrum(). 327 * \param *data: a pointer to the first element in an array of doubles representing the amplitudes of the harmonic spectrum of an audio vector. It is sufficient to pass in a pointer to array pointed to by *result from xtract_harmonic_spectrum().
328 * \param N: the number of elements to be considered. If using the array pointed to by *result from xtract_harmonics, N should equal half the total array size i.e., just the amplitudes of the peaks. 328 * \param N: the number of elements to be considered. If using the array pointed to by *result from xtract_harmonics, N should equal half the total array size i.e., just the amplitudes of the peaks.
329 * \param *argv: a pointer to NULL 329 * \param *argv: a pointer to a double representing the fundamental frequency of the input vector.
330 * \param *result: the even/odd harmonic ratio of N values from the array pointed to by *data 330 * \param *result: the even/odd harmonic ratio of N values from the array pointed to by *data
331 */ 331 */
332 int xtract_odd_even_ratio(const double *data, const int N, const void *argv, double *result); 332 int xtract_odd_even_ratio(const double *data, const int N, const void *argv, double *result);
333 333
334 /** \brief Extract the Sharpness of an input vector 334 /** \brief Extract the Sharpness of an input vector