<< Chapter < Page | Chapter >> Page > |
Applying the DTFT multiplication property we find that the DFT of the windowed (truncated) signal produces samples not of the true (desired) DTFT spectrum , but of a smoothed verson . We want this to resemble as closely as possible, so should be as close to an impulse as possible. The window need not be a simple truncation (or rectangle , or boxcar ) window; other shapes can also be used as long as they limit the sequence to at most consecutive nonzero samples. All good windows are impulse-like, and represent various tradeoffsbetween three criteria:
Many different window functions have been developed for truncating and shaping a length- signal segment for spectral analysis.The simple truncation window has a periodic sinc DTFT, as shown in . It has the narrowest main-lobe width, at the -3 dB level and between the two zeros surrounding the main lobe, of the common window functions, but also the largest side-lobe peak, at about -13 dB.The side-lobes also taper off relatively slowly.
The Hann window (sometimes also called the hanning window), illustrated in , takes the form for between and . It has a main-lobe width (about at the -3 dB level and between the two zeros surrounding the main lobe) considerably larger than the rectangular window,but the largest side-lobe peak is much lower, at about -31.5 dB. The side-lobes also taper off much faster.For a given length, this window is worse than the boxcar window at separating closely-spaced spectral components of similar magnitude, but better for identifyingsmaller-magnitude components at a greater distance from the larger components.
The Hamming window , illustrated in , has a form similar to the Hann window but with slightly different constants: for between and . Since it is composed of the same Fourier series harmonics as the Hann window,it has a similar main-lobe width (a bit less than at the -3 dB level and between the two zeros surrounding the main lobe), but the largest side-lobe peak is much lower, at about -42.5 dB.However, the side-lobes also taper off much more slowly than with the Hann window. For a given length, the Hamming window is better than the Hann (and of coursethe boxcar) windows at separating a small component relatively near to a large component, but worse than the Hann for identifying very small components atconsiderable frequency separation. Due to their shape and form, the Hann and Hamming windows are also known as raised-cosine windows .
The main-lobe width of a window is an inverse function of the window-length ; for any type of window, a longer window will always provide better resolution.
Many other windows exist that make various other tradeoffs between main-lobe width, height of largest side-lobe, and side-lobe rolloff rate.The Kaiser window family, based on a modified Bessel function, has an adjustable parameter that allows the user to tune the tradeoff over a continuous range.The Kaiser window has near-optimal time-frequency resolution and is widely used. A list of many different windows can be found here .
shows 64 samples of a real-valued signal composed of several sinusoids of various frequencies and amplitudes. shows the magnitude (in dB) of the positive frequencies of a length-1024 zero-padded DFT of this signal(that is, using a simple truncation, or rectangular, window). From this spectrum, it is clear that the signal has two large, nearby frequency components with frequencies near 1 radian of essentially the same magnitude.
shows the spectral estimate produced using a length-64 Hamming window applied to the same signal shown in . The two large spectral peaks can no longer be resolved; they blur into asingle broad peak due to the reduced spectral resolution of the broader main lobe of the Hamming window.However, the lower side-lobes reveal a third component at a frequency of about 0.7 radians at about 35 dB lower magnitude than the larger components.This component was entirely buried under the side-lobes when the rectangular window was used, but now stands out well above the much lowernearby side-lobes of the Hamming window.
shows the spectral estimate produced using a length-64 Hann window applied to the same signal shown in . The two large components again merge into a single peak, and the smaller component observed with the Hamming window is largely lost under the highernearby side-lobes of the Hann window. However, due to the much faster side-lobe rolloff of the Hann window's spectrum,a fourth component at a frequency of about 2.5 radians with a magnitude about 65 dB below that of the main peaks is now clearly visible.
This example illustrates that no single window is best for all spectrum analyses. The best window depends on the nature of the signal, and different windows maybe better for different components of the same signal. A skilled spectrum analysist may apply several different windows to a signal togain a fuller understanding of the data.
Notification Switch
Would you like to follow the 'The dft, fft, and practical spectral analysis' conversation and receive update notifications?