ref: f9d5346f86526759d5018836c1a8d8e9b24bcf7b
parent: 2a2636a5e6d93d0fc4634e4745e799802e3de54d
author: Paul Brossier <piem@piem.org>
date: Sat Mar 2 13:03:01 EST 2013
src/mathutils.c: fix parzen and welch
--- a/src/mathutils.c
+++ b/src/mathutils.c
@@ -109,11 +109,11 @@
break;
case aubio_win_welch:
for (i=0;i<size;i++)
- w[i] = 1.0 - SQR((2*i-size)/(size+1.0));
+ w[i] = 1.0 - SQR((2.*i-size)/(size+1.0));
break;
case aubio_win_parzen:
for (i=0;i<size;i++)
- w[i] = 1.0 - ABS((2*i-size)/(size+1.0));
+ w[i] = 1.0 - ABS((2.*i-size)/(size+1.0));
break;
default:
break;