aboutsummaryrefslogtreecommitdiff
path: root/fft.c
diff options
context:
space:
mode:
Diffstat (limited to 'fft.c')
-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;