[Libxtract-commits] SF.net SVN: libxtract: [86] trunk
Status: Alpha
Brought to you by:
postlude
From: <pos...@us...> - 2007-08-20 08:12:10
|
Revision: 86 http://libxtract.svn.sourceforge.net/libxtract/?rev=86&view=rev Author: postlude Date: 2007-08-20 01:12:04 -0700 (Mon, 20 Aug 2007) Log Message: ----------- Minor mods and typos corrections that were lurking uncommitted Modified Paths: -------------- trunk/TODO trunk/src/scalar.c trunk/xtract/libxtract.h trunk/xtract/xtract_scalar.h trunk/xtract/xtract_vector.h Modified: trunk/TODO =================================================================== --- trunk/TODO 2007-08-19 21:54:10 UTC (rev 85) +++ trunk/TODO 2007-08-20 08:12:04 UTC (rev 86) @@ -1,3 +1,4 @@ +Add -fPIC in intelligent way to build system for 64-bit builds Rationalise use of powf etc. vs pow Add spectral_flux Add geometric_mean Modified: trunk/src/scalar.c =================================================================== --- trunk/src/scalar.c 2007-08-19 21:54:10 UTC (rev 85) +++ trunk/src/scalar.c 2007-08-20 08:12:04 UTC (rev 86) @@ -350,8 +350,11 @@ int n = N; - float num = 0.f, den = 0.f, temp; + float num = 0.f, den = 0.f, temp = 0.f; + if(argv == NULL) + return XTRACT_BAD_ARGV; + while(n--){ temp = n - *(float *)argv; num += XTRACT_SQ(temp) * data[n]; Modified: trunk/xtract/libxtract.h =================================================================== --- trunk/xtract/libxtract.h 2007-08-19 21:54:10 UTC (rev 85) +++ trunk/xtract/libxtract.h 2007-08-20 08:12:04 UTC (rev 86) @@ -27,6 +27,9 @@ * * Hopefully this not only makes the library more efficient when computing large numbers of features, but also makes it more flexible because extraction functions can be combined arbitrarily (one can take the irregularility of the Mel Frequency Cepstral Coefficients for example). * + * + * LibXtract can be downloaded from http://www.sf.net/projects/libxtract + * */ #ifndef XTRACT_H Modified: trunk/xtract/xtract_scalar.h =================================================================== --- trunk/xtract/xtract_scalar.h 2007-08-19 21:54:10 UTC (rev 85) +++ trunk/xtract/xtract_scalar.h 2007-08-20 08:12:04 UTC (rev 86) @@ -28,7 +28,7 @@ #endif /** - * \defgroup scalar extraction functions + * \defgroup scalar scalar extraction functions * * Defines scalar extraction functions, and their parameters. * @{ @@ -200,7 +200,7 @@ * * \param *data: a pointer to the first element in an array of floats representing the magnitude coefficients from the spectrum of an audio vector, (e.g. the first half of the array pointed to by *result from xtract_spectrum(). * \param N: the number of elements to be considered - * \param *argv: a pointer to NULL + * \param *argv: a pointer to a float corresponding to the spectral centroid * \param *result: the spectral spread of N values from the array pointed to by *data */ int xtract_spread(const float *data, const int N, const void *argv, float *result); Modified: trunk/xtract/xtract_vector.h =================================================================== --- trunk/xtract/xtract_vector.h 2007-08-19 21:54:10 UTC (rev 85) +++ trunk/xtract/xtract_vector.h 2007-08-20 08:12:04 UTC (rev 86) @@ -28,9 +28,9 @@ #endif /** - * \defgroup vector extraction functions + * \defgroup vector vector extraction functions * - * Defines vectorr extraction functions, and their parameters. + * Defines vector extraction functions, and their parameters. * @{ */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |