projects
/
aubio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a2636a
)
src/mathutils.c: fix parzen and welch
author
Paul Brossier
<piem@piem.org>
Sat, 2 Mar 2013 23:03:01 +0000
(18:03 -0500)
committer
Paul Brossier
<piem@piem.org>
Sat, 2 Mar 2013 23:03:01 +0000
(18:03 -0500)
src/mathutils.c
patch
|
blob
|
history
diff --git
a/src/mathutils.c
b/src/mathutils.c
index 0c764552488fcd954f9b2e04822cd8f00d1ff89d..38431c976e89b883ee6c40454e836b32764cab49 100644
(file)
--- a/
src/mathutils.c
+++ b/
src/mathutils.c
@@
-109,11
+109,11
@@
new_aubio_window (char_t * window_type, uint_t size)
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;