aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-29 22:39:24 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-29 22:39:24 +0000
commit32fa68eade7de61dde767b66df0447310d139ce5 (patch)
tree504a49a27862754165dcd7049d3823f51a482130
parente5981bebb1ef149c792d039d4ef8b6945af2c739 (diff)
normalize to effective sinus amplitude
-rw-r--r--fft.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fft.c b/fft.c
index ad5c493..f373951 100644
--- a/fft.c
+++ b/fft.c
@@ -45,7 +45,7 @@ hamming(size_t n)
for (i = 0; i < n; i++) {
p[i] = alpha - beta * cos(2 * M_PI * i / (n - 1));
- p[i] /= (double)INT16_MAX;
+ p[i] /= INT16_MAX * 0.707;
}
return p;