Coherent gain of a window 2026-11-05
The coherent gain of a discrete window function is its mean coefficient:
It describes the amplitude scaling of a coherent complex tone under the chosen DFT normalization. Window coefficients and their normalization must be specified; a window's name alone does not fix every finite-length convention.[ref]
For , multiply by and evaluate the unnormalized discrete Fourier transform at the exact tone bin:
Thus recovers when . This result is exact for this complex-tone model. A real cosine also has a negative-frequency component; the usual doubled one-sided amplitude requires that its contribution to the chosen positive-frequency bin be absent or separately accounted for.
A rectangular window has . The periodic Hann window has for . Its coherent bin therefore has half the unwindowed amplitude before correction. The symmetric endpoint convention , for , instead gives . At this is , so blindly multiplying by two is not the exact correction for that convention.
Coherent gain does not correct every amplitude error. An off-bin tone samples the window's frequency response away from its maximum, and a DC-removing window with zero sum has no usable gain correction at all. Coherent sampling, leakage and window normalization are distinct conditions.
Noise uses a different scaling. For independent equal-variance samples, a weighted DFT bin's noise variance is proportional to , not . This motivates equivalent noise bandwidth in bins,
which is for a periodic Hann window with . The manufacturer's table lists both coherent gain and noise bandwidth rather than treating one as a substitute for the other.[ref]
Finite-record phasor extraction with coherent sampling recovers a sinusoid's complex amplitude by arranging its frequency on a discrete Fourier bin. Let samples be taken at , with containing exactly cycles, where is an integer and . For
the constant baseline cancels from bin . The peak phasor versus positive-frequency Fourier coefficient relation then gives the estimate
The factor assigns wave phase to the stated physical time origin; without it the coefficient refers to the record's start. The default forward FFT is unscaled, while other FFT normalization modes require different prefactors.[ref]
For an original example, sample at with and use a tone, so and the cyclic record duration is . Let its physical peak phasor be and let . The record-start wave phase is , and the unscaled bin is
Applying both and the time-origin correction recovers the physical phasor. Its RMS amplitude is . Omitting the start-time correction would give a correct magnitude but a different wave phase reference.
With independent zero-mean real noise of variance on each sample, the extracted phasor remains unbiased. Orthogonality gives noise variance in each real and imaginary component and zero covariance between them. For here, each component's standard deviation is about . These are complex-amplitude uncertainties; taking a magnitude is a nonlinear operation and need not retain unbiasedness.
Coherent sampling must describe the actual source/clock relationship, not just the rounded frequency entered into software. Frequency drift, extra tones, aliasing or a changed window invalidate the simple exact-bin identity; spectral leakage bias in harmonic distortion measurements shows one consequence. A coherent gain of a window can correct an on-bin amplitude scale in suitable models, but cannot in general turn a noncoherent one-bin reading into an exact phasor.
Spectral leakage bias in harmonic distortion measurements occurs when a finite record spreads a strong component into bins interpreted as distinct harmonics. A waveform can have zero physical total harmonic distortion while a naive FFT-bin ratio reports otherwise. Confining a sinusoid to a finite interval creates spectral sidelobes; the pinned primary guide derives this leakage from the finite-time Fourier transform.[ref]
For an exact discrete calculation, take , where is the number of cycles in the record. With the unscaled forward discrete Fourier transform, a finite geometric sum gives
where
whenever the denominator is nonzero, with the finite-sum limit elsewhere. Integer-cycle coherent sampling makes the unwanted integer bins cancel; a noninteger cycle count generally does not. The negative-frequency contribution also matters because the input is real.
For an original pure-tone example, let , , and . Its true higher-harmonic amplitudes are zero. Yet choosing the nearest bins , , and for the fundamental, second and third harmonic gives
A naive result would be about distortion from this undistorted sinusoid. This is an exactly specified record calculation, not an instrument's measured distortion floor.
A window reduces some sidelobes at the cost of a broader main lobe and a changed amplitude normalization. Its coherent gain of a window must be treated consistently, and one cannot assume that one selected bin captures a noncoherent tone's full amplitude. Zero padding samples the same finite-record spectrum more densely; it does not restore missing observation time or remove leakage.
A measurement can instead synchronize the source and acquisition for an integer number of cycles, fit a justified sinusoidal model, or use a validated window/band-integration method. The finite-record phasor extraction with coherent sampling gives a particularly transparent exact case. Calibrated receiver response and actual harmonic coverage remain necessary, as in the primary Anritsu apparatus.[ref] Power spectral density and squared-amplitude spectrum outputs also have different units; an arbitrary square root of a density bin is not a calibrated harmonic amplitude.[ref]