ref: 4e4b8ccde1699fc66113109b0795bdd71a5d284e
parent: 1fd5a4013de02f96e3b59514c745c67354ab33c3
author: robs <robs>
date: Wed Jan 28 06:53:42 EST 2009
fix kaiser window
--- a/src/filter.c
+++ b/src/filter.c
@@ -97,7 +97,7 @@
if (Beta>2) { /* Apply Kaiser window to filter coeffs: */
double IBeta = 1.0/lsx_bessel_I_0(Beta);
for (i=1; i<N; i++) {
- double x = (double)i / (double)(N);
+ double x = (double)i / (double)(N-1);
c[i] *= lsx_bessel_I_0(Beta*sqrt(1.0-x*x)) * IBeta;
}
} else { /* Apply Nuttall window: */