Half-bin amplitude response of a window
ID: half-bin-amplitude-response-of-a-window
The half-bin amplitude response of a window is the magnitude response to an isolated tone halfway between neighboring discrete Fourier transform frequencies, divided by the response to a bin-centered tone of the same amplitude. It quantifies a particular off-grid amplitude error after correcting the coherent gain of a window. For coefficients with nonzero sum, defineA loss convention reports in decibels. The primary instrument manual tabulates approximately for rectangular weighting and for Hanning weighting.[ref]
To derive the ratio, take a complex tone . Evaluating the windowed transform at bin gives . For real window coefficients, the responses at opposite offsets have equal magnitude. Dividing by removes the on-bin scaling and leaves . This calculation isolates the frequency-grid effect from noise and other spectral components.
For a rectangular window, summing the geometric series yieldsFor , the ratio is about . The large- value is about , explaining the familiar scalloping loss rather than an exact finite-record constant.
For the periodic Hann window, . Its finite response iswhere is the rectangular response and for . Substitution gives about at . A useful limiting derivation replaces the normalized sum by its integral:with continuous limiting values at . At its magnitude is . For a short periodic window, the coefficients instead give . The finite definition avoids treating the asymptotic value as exact.
The symmetric Hann window uses denominator , not ; it has a different finite response and coefficient sum. SciPy explicitly distinguishes the symmetric filter-design convention from the periodic spectral convention.[ref] The exact half-bin ratio should therefore use the coefficients actually applied.
For an original acquisition example, a -sample record at has bin spacing. A complex tone at lies halfway between bins 10 and 11. An amplitude-one tone gives a corrected nearest-bin magnitude about with rectangular weighting or with periodic Hann weighting. Zero padding changes the sampled grid of the same discrete-time Fourier transform; if the padded grid contains , its value there has no half-bin error relative to that tone.
The half-bin response is not automatically a universal worst-case bound for every conceivable window. Nor does the isolated-complex-tone calculation cover every real-sinusoid measurement: near zero frequency or the sampling limit, the mirrored spectral component can overlap and make the observed magnitude phase-dependent. A proposed test sweeps a constant-amplitude tone through a bin interval, varies phase for real signals, and compares the complete finite-sum response before quoting a single off-bin accuracy number.
New to topics? Read the docs here!