The Kaiser window coefficients are given by the following formula
where N is the length of the filter, k = 0, 1, …, N – 1, α is any real number, and I0 is the zero order modified Bessel function of the first kind.
Computing the Kaiser window
The modified Bessel function of the first kind (the hyperbolic Bessel function) is defined as follows.
where β is the order of the function and Γ is the generalized factorial.
Note that for any positive integer n, Γ(n) = (n – 1)!. Then at β = 0, Γ(n + β + 1) = (n + 0 + 1 – 1)! = n!. This means that the zero order modified Bessel function of the first kind is simply
The sum converges and we can be approximate for any x, if we take the first few terms, say
The Kaiser window itself, if we rewrite the numerator and denominator as per the discussion above, can be written as follows.
As before, both sums converge and can be approximated by taking the first few terms.
An example Kaiser window
Consider a finite impulse response (FIR) low pass filter of length N = 201. The following is the Kaiser window with α = 3 and M = 4.
Given a sampling frequency of 2000 Hz and a filter cutoff frequency of 40 Hz, the impulse response of the filter with a rectangular window (with no window) and with the Kaiser window is as follows.
The magnitude response of the same filter is shown on the graph below.
As the absolute value of α increases, the windowed filter produces a larger transition band, but better stop band attenuation. As |α| decreases, the filter has a smaller transition band and worse stop band attenuation. At α = 0 the Kaiser window becomes a rectangular window.
The Kaiser window with N = 201 for three different values of α (0.5, 1, and 5) is shown below.
The following are the magnitude responses of these windows, applied to a filter with a cutoff frequency of 40 Hz, given a sampling frequency of 2000 Hz.
Measures for the Kaiser window
The following is a comparison of the discrete Fourier transform of the Kaiser window (α = 1.0) and the rectangular window.
The Kaiser window measures are as follows.