Mercurial > hg > libxtract
comparison xtract/xtract_delta.h @ 146:baaa9d8b4d10
switched from single to double precision througout. closes #9
author | Jamie Bullock <jamie@jamiebullock.com> |
---|---|
date | Wed, 09 Jan 2013 12:45:29 +0000 |
parents | e4f704649c50 |
children | a1c83801f973 |
comparison
equal
deleted
inserted
replaced
145:2663eac093a5 | 146:baaa9d8b4d10 |
---|---|
43 /** \brief Extract flux | 43 /** \brief Extract flux |
44 * | 44 * |
45 * \note FIX: don't be lazy -- take the lnorm of the difference vector! | 45 * \note FIX: don't be lazy -- take the lnorm of the difference vector! |
46 * An alias for xtract_lnorm() | 46 * An alias for xtract_lnorm() |
47 */ | 47 */ |
48 int xtract_flux(const float *data, const int N, const void *argv , float *result); | 48 int xtract_flux(const double *data, const int N, const void *argv , double *result); |
49 | 49 |
50 /** \brief Extract the L-norm of a vector | 50 /** \brief Extract the L-norm of a vector |
51 * | 51 * |
52 * \param *data: a pointer to the first element in an array of floats representing the difference between two subsequent frames of output from a vector-based feature e.g. the *result from xtract_difference_vector() | 52 * \param *data: a pointer to the first element in an array of doubles representing the difference between two subsequent frames of output from a vector-based feature e.g. the *result from xtract_difference_vector() |
53 * \param N: the length of the array pointed to by *data | 53 * \param N: the length of the array pointed to by *data |
54 * \param *argv: a pointer to an array of floats, the first representing the "norm order". The second argument represents the filter type determining what values we consider from the difference vector as given in the enumeration xtract_lnorm_filter_types_ (libxtract.h) | 54 * \param *argv: a pointer to an array of doubles, the first representing the "norm order". The second argument represents the filter type determining what values we consider from the difference vector as given in the enumeration xtract_lnorm_filter_types_ (libxtract.h) |
55 * \param *result: a pointer to a float representing the flux | 55 * \param *result: a pointer to a double representing the flux |
56 * | 56 * |
57 */ | 57 */ |
58 int xtract_lnorm(const float *data, const int N, const void *argv , float *result); | 58 int xtract_lnorm(const double *data, const int N, const void *argv , double *result); |
59 /*xtract_frame_tracker *xf */ | 59 /*xtract_frame_tracker *xf */ |
60 | 60 |
61 /** \brief Extract attack Time */ | 61 /** \brief Extract attack Time */ |
62 int xtract_attack_time(const float *data, const int N, const void *argv , float *result); | 62 int xtract_attack_time(const double *data, const int N, const void *argv , double *result); |
63 /* xtract_amp_tracker *xa */ | 63 /* xtract_amp_tracker *xa */ |
64 | 64 |
65 /** Extract temporal decrease */ | 65 /** Extract temporal decrease */ |
66 int xtract_decay_time(const float *data, const int N, const void *argv, float *result); | 66 int xtract_decay_time(const double *data, const int N, const void *argv, double *result); |
67 /* xtract_amp_tracker *xa */ | 67 /* xtract_amp_tracker *xa */ |
68 | 68 |
69 | 69 |
70 /** \brief Extract the difference between two vectors | 70 /** \brief Extract the difference between two vectors |
71 * | 71 * |
73 * \param N the size of the array pointed to by *data | 73 * \param N the size of the array pointed to by *data |
74 * \param *argv a pointer to NULL | 74 * \param *argv a pointer to NULL |
75 * \param *result a pointer to an array of size N / 2 representing the difference between the two input vectors. | 75 * \param *result a pointer to an array of size N / 2 representing the difference between the two input vectors. |
76 * | 76 * |
77 * */ | 77 * */ |
78 int xtract_difference_vector(const float *data, const int N, const void *argv, float *result); | 78 int xtract_difference_vector(const double *data, const int N, const void *argv, double *result); |
79 /*xtract_frame_tracker *xf */ | 79 /*xtract_frame_tracker *xf */ |
80 /*float frames*/ | 80 /*double frames*/ |
81 | 81 |
82 /** @} */ | 82 /** @} */ |
83 | 83 |
84 #ifdef __cplusplus | 84 #ifdef __cplusplus |
85 } | 85 } |