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]
Total harmonic distortion 2026-11-05
Total harmonic distortion measures the root-sum-square amplitude of the selected higher harmonic components relative to the fundamental amplitude. For nonzero and one common amplitude convention,
Peak amplitudes or root mean square amplitudes give the same ratio when used consistently for all sinusoids. The finite upper order , measurement bandwidth, and treatment of noise must be specified. The primary Anritsu procedure distinguishes this fundamental-normalized definition from normalization by the full harmonic component sum.[ref]
For an original example, let a waveform have fundamental peak amplitude , second harmonic component , and third harmonic component , with no other components. Then
A logarithmic amplitude-ratio report is . The phases do not enter this RMS sum because distinct integer harmonic components are orthogonal over a full period.
If the denominator instead includes the fundamental and all included harmonic components, excluding DC, the resulting ratio is
about in the example. The two conventions are close at low distortion but differ markedly when higher harmonic components are large; only the latter is bounded by one. A quoted percentage without its denominator convention is incomplete. Broadband noise is a different contribution and is not silently included in the displayed THD formula.
A motivating apparatus uses a clean sinusoidal source, the device under test, and calibrated receivers tuned to the fundamental and harmonic component frequencies. Anritsu's worked system calibrates the receiver over those frequencies before combining separate measurements.[ref] With an FFT-based instrument, spectral leakage bias in harmonic distortion measurements can misassign a strong fundamental to harmonic component bins; aliasing and insufficient receiver bandwidth can also hide or relocate components. Small THD therefore describes a stated test and analysis, not every possible waveform or operating level.