Mercurial > hg > libxtract
comparison src/scalar.c @ 182:ff5f5b77bf3f
Use log10 (double precision) instead of log10f. Fixes bug in spectral flatness
author | Jamie Bullock <jamie@jamiebullock.com> |
---|---|
date | Thu, 04 Jul 2013 08:59:01 +0100 |
parents | b88a28c37218 |
children | 95af6c8dc7f2 |
comparison
equal
deleted
inserted
replaced
181:17577ad7d584 | 182:ff5f5b77bf3f |
---|---|
541 flatness = *(double *)argv; | 541 flatness = *(double *)argv; |
542 | 542 |
543 if (flatness <= 0) | 543 if (flatness <= 0) |
544 flatness = XTRACT_LOG_LIMIT; | 544 flatness = XTRACT_LOG_LIMIT; |
545 | 545 |
546 *result = 10 * log10f(flatness); | 546 *result = 10 * log10(flatness); |
547 | 547 |
548 return XTRACT_SUCCESS; | 548 return XTRACT_SUCCESS; |
549 | 549 |
550 } | 550 } |
551 | 551 |