diff options
author | Jamie Bullock <jamie@jamiebullock.com> | 2014-06-04 17:36:11 +0100 |
---|---|---|
committer | Jamie Bullock <jamie@jamiebullock.com> | 2014-06-04 17:36:11 +0100 |
commit | d18419790931de8ce55b713f490e409d723b35fa (patch) | |
tree | b1457ccb961a32759e0affea5c8dc6958681363a /xtract/xtract_scalar.h | |
parent | f23415cb9604b219bf0eedf79cf5c065c55b2c0d (diff) | |
parent | 71ae0bc782330606c03cd01f31aa22211ff8c857 (diff) | |
download | LibXtract-d18419790931de8ce55b713f490e409d723b35fa.tar.gz LibXtract-d18419790931de8ce55b713f490e409d723b35fa.tar.bz2 LibXtract-d18419790931de8ce55b713f490e409d723b35fa.zip |
Merge pull request #53 from seanlikeskites/tristimulusWork
Possible Corrections to Tristimulus Functions
Diffstat (limited to 'xtract/xtract_scalar.h')
-rw-r--r-- | xtract/xtract_scalar.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/xtract/xtract_scalar.h b/xtract/xtract_scalar.h index 1c79cc9..8e24284 100644 --- a/xtract/xtract_scalar.h +++ b/xtract/xtract_scalar.h @@ -182,9 +182,9 @@ int xtract_irregularity_j(const double *data, const int N, const void *argv, dou /** \brief Calculate the Tristimulus of an input vector using a method described by Pollard and Jansson (1982) * - * \param *data: a pointer to the first element in an array of doubles representing the magnitude coefficients of the harmonic spectrum of an audio vector e.g. a pointer to the first half of the array pointed to by *result from xtract_harmonics(). The amplitudes of the peak spectrum (e.g. *result from xtract_peak_spectrum()) can be used if one wishes to consider all partials not just harmonics. + * \param *data: a pointer to the first element in an array of doubles representing a harmonic spectrum of size N/2, and a frequency spectrum of size N/2 (This is the output format of xtract_harmonic_spectrum()) * \param N: the number of elements to be considered - * \param *argv: a pointer to NULL + * \param *argv: a pointer to a double representing the fundamental frequency of the input vector. * \param *result: the tristimulus of N values from the array pointed to by *data * * These three functions provide the first, second and third order tristimulus formulae @@ -324,9 +324,9 @@ int xtract_power(const double *data, const int N, const void *argv, double *resu /* Odd to even harmonic ratio */ /** \brief Extract the Odd to even harmonic ratio of an input vector * - * \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(). - * \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. - * \param *argv: a pointer to NULL + * \param *data: a pointer to the first element in an array of doubles representing a harmonic spectrum of size N/2, and a frequency spectrum of size N/2 (This is the output format of xtract_harmonic_spectrum()) + * \param N: the number of elements to be considered. + * \param *argv: a pointer to a double representing the fundamental frequency of the input vector. * \param *result: the even/odd harmonic ratio of N values from the array pointed to by *data */ int xtract_odd_even_ratio(const double *data, const int N, const void *argv, double *result); |