Spectrum Analysis of Sinusoids
Choosing Window Length to Resolve Sinusoids
Tighter Bounds for Minimum Window LengthSearch Spectral Audio Signal Processing
Would you like to be notified by email when Julius Orion Smith III publishes a new entry into his blog?
Figures 1.20(a) through 1.20(d) show four possible main-lobe separations that could be considered for purposes of resolving closely spaced sinusoidal peaks.
![]() |
In Fig.1.20(a), the main lobes sit atop each other's first zero
crossing. We may call this the ``minimum orthogonal separation,'' so
named because we know from Discrete Fourier Transform theory
[243] that
-sample segments of
sinusoids at this frequency-spacing are exactly orthogonal. (
is
the rectangular-window length as before.) At this spacing, the peak
of each main lobe is unchanged by the ``interfering'' window
transform. However, the slope and higher derivatives at each
peak are modified by the presence of the interfering window
transform. In practice, we must work over a discrete frequency axis,
and we do not, in general, sample exactly at each main-lobe peak.
Instead, we usually determine an interpolated peak location
based on samples near the true peak location. For example, quadratic
interpolation, which is commonly used, requires at least three samples
about each peak (as discussed in §4.8 below), and it is
therefore sensitive to a nonzero slope at the peak. Thus, while
minimum-orthogonal spacing is ideal in the limit as the sampling
density along the frequency axis approaches infinity, it is not ideal
in practice, even when we know the peak frequency-spacing
exactly.2.11
Figure 1.20(b) shows the ``zero-error stationary point'' frequency
spacing. In this case, the main-lobe peak of one
sits atop
the first local minimum from the main-lobe of the other
. Since the derivative of both
functions is zero at
both peak frequencies at this spacing, the peaks do not ``sit on a
slope'' which would cause the peak locations to be biased away
from the sinusoidal frequencies. We may say that peak-frequency
estimates based on samples about the peak will be unbiased, to first
order, at this spacing. This minimum spacing, which is easy to
compute for Blackman-Harris windows, turns out to be very close to the
optimal minimum spacing [1].
Figure 1.20(c) shows the minimum frequency spacing which naturally matches side-lobe level. That is, the main lobes are pulled apart until the main-lobe level equals the worst-case side-lobe level. This spacing is usually not easy to compute, and it is best matched with the Chebyshev window (see §3.9). Note that it is just a little wider than the stationary-point spacing discussed in the previous paragraph.
For ease of comparison, Fig.1.20(d) shows once again the simple, sufficient rule (''full main-lobe separation'') discussed in §1.7 above. While overly conservative, it is easily computed for many window types (any window with a known main-lobe width), and so it remains a useful rule-of-thumb for determining minimum window length given the minimum expected frequency spacing.
A table of minimum window lengths for the Kaiser window, as a function of frequency spacing, is given in §3.8.
In summary, when measuring sinusoidal peaks, it is important to know the minimum frequency separation of the peaks, and to choose an FFT window which is long enough to resolve the peaks accurately. Generally speaking, the window must ``see'' at least 1.5 cycles of the minimum difference frequency. The rectangular window ``sees'' its full length. Other windows, which are all tapered in some way (Chapter 3), see an effective duration less than the window length in samples. Further details regarding theoretical and empirical estimates are given in [1].
