The total harmonic distortion (THD or THDi) is a measurement of the harmonic distortion present in a signal and is defined as the ratio of the sum of the powers of all harmonic components to the power of the fundamental frequency. Distortion factor, a closely related term, is sometimes used as a synonym.
In audio systems, lower distortion means that the components in a loudspeaker, amplifier or microphone or other equipment produce a more accurate reproduction of an audio recording.
In radio communications, devices with lower THD tend to produce less unintentional interference with other electronic devices. Since harmonic distortion can potentially widen the frequency spectrum of the output emissions from a device by adding signals at multiples of the input frequency, devices with high THD are less suitable in applications such as spectrum sharing and spectrum sensing. [1]
In power systems, lower THD implies lower peak currents, less heating, lower electromagnetic emissions, and less core loss in motors. [2] IEEE Standard 519-2022 covers the recommended practice and requirements for harmonic control in electric power systems. [3]
To understand a system with an input and an output, such as an audio amplifier, we start with an ideal system where the transfer function is linear and time-invariant. When a sinusoidal signal of frequency ω passes through a non-ideal, non-linear device, additional content is added at multiples nω (harmonics) of the original frequency. THD is a measure of that additional signal content not present in the input signal.
When the main performance criterion is the "purity" of the original sine wave (in other words, the contribution of the original frequency with respect to its harmonics), the measurement is most commonly defined as the ratio of the RMS amplitude of a set of higher harmonic frequencies to the RMS amplitude of the first harmonic, or fundamental frequency [1] [2] [4] [5] [6] [7] [8] [9]
where Vn is the RMS value of the nth harmonic voltage, and V1 is the RMS value of the fundamental component.
In practice, the THDF is commonly used in audio distortion specifications (percentage THD); however, THD is a non-standardized specification, and the results between manufacturers are not easily comparable. Since individual harmonic amplitudes are measured, it is required that the manufacturer disclose the test signal frequency range, level and gain conditions, and number of measurements taken. It is possible to measure the full 20 Hz–20 kHz range using a sweep (though distortion for a fundamental above 10 kHz is inaudible).
Measurements for calculating the THD are made at the output of a device under specified conditions. The THD is usually expressed in percent or in dB relative to the fundamental as distortion attenuation.
A variant definition uses the fundamental plus harmonics as the reference: [4] [10] [11]
These can be distinguished as THDF (for "fundamental"), and THDR (for "root mean square"). [12] [13] THDR cannot exceed 100%. At low distortion levels, the difference between the two calculation methods is negligible. For instance, a signal with THDF of 10% has a very similar THDR of 9.95%. However, at higher distortion levels the discrepancy becomes large. For instance, a signal with THDF 266% has a THDR of 94%. [4] A pure square wave with infinite harmonics has THDF of 48.3% [1] [14] [15] and THDR of 43.5%. [16] [17]
Some use the term "distortion factor" as a synonym for THDR, [18] while others use it as a synonym for THDF. [19]
The International Electrotechnical Commission (IEC) also defines another term total harmonic factor for the "ratio of the RMS value of the harmonic content of an alternating quantity to the RMS value of the quantity" using a different equation. [20]
THD+N means total harmonic distortion plus noise. This measurement is much more common and more comparable between devices. It is usually measured by inputting a sine wave, notch-filtering the output, and comparing the ratio between the output signal with and without the sine wave: [21]
Like the THD measurement, this is a ratio of RMS amplitudes [7] [22] and can be measured as THDF (bandpassed or calculated fundamental as the denominator) or, more commonly, as THDR (total distorted signal as the denominator). [23]
A meaningful measurement must include the bandwidth of measurement. This measurement includes effects from ground-loop power-line hum, high-frequency interference, intermodulation distortion between these tones and the fundamental, and so on, in addition to harmonic distortion. For psychoacoustic measurements, a weighting curve is applied such as A-weighting or ITU-R BS.468, which is intended to accentuate what is most audible to the human ear, contributing to a more accurate measurement. A-weighting is a rough way to estimate the frequency sensitivity of every persons' ears, as it does not take into account the non-linear behavior of the ear. [24] The loudness model proposed by Zwicker includes these complexities. The model is described in the German standard DIN45631 [25]
For a given input frequency and amplitude, THD+N is reciprocal to SINAD, provided that both measurements are made over the same bandwidth.
The distortion of a waveform relative to a pure sinewave can be measured either by using a THD analyzer to analyse the output wave into its constituent harmonics and noting the amplitude of each relative to the fundamental; or by cancelling out the fundamental with a notch filter and measuring the remaining signal, which will be total aggregate harmonic distortion plus noise.
Given a sinewave generator of very low inherent distortion, it can be used as input to amplification equipment, whose distortion at different frequencies and signal levels can be measured by examining the output waveform.
There is electronic equipment both to generate sinewaves and to measure distortion; but a general-purpose digital computer equipped with a sound card can carry out harmonic analysis with suitable software. Different software can be used to generate sinewaves, but the inherent distortion may be too high for measurement of very low-distortion amplifiers.
For many purposes, different types of harmonics are not equivalent. For instance, crossover distortion at a given THD is much more audible than clipping distortion at the same THD, since the harmonics produced by crossover distortion are nearly as strong at higher-frequency harmonics, such as 10× to 20× the fundamental, as they are at lower-frequency harmonics like 3× or 5× the fundamental. Those harmonics appearing far away in frequency from a fundamental (desired signal) are not as easily masked by that fundamental. [26] In contrast, at the onset of clipping, harmonics first appear at low-order frequencies and gradually start to occupy higher-frequency harmonics. A single THD number is therefore inadequate to specify audibility and must be interpreted with care. Taking THD measurements at different output levels would expose whether the distortion is clipping (which decreases with an decreasing level) or crossover (which stays constant with varying output level, and thus is a greater percentage of the sound produced at low volumes).
THD is a summation of a number of harmonics equally weighted, even though research performed decades ago identifies that lower-order harmonics are harder to hear at the same level, compared with higher-order ones. In addition, even-order harmonics are said to be generally harder to hear than odd-order. [27] A number of methods have been developed to estimate the actual audibility of THD, used to quantify crossover distortion or loudspeaker rub and buzz, such as "high-order harmonic distortion" (HOHD) or "higher harmonic distortion" (HHD) which measures only the 10th and higher harmonics, or metrics that apply psychoacoustic loudness curves to the residual. [28] [29]
For many standard signals, the above criterion may be calculated analytically in a closed form. [1] For example, a pure square wave has THDF equal to
The sawtooth signal possesses
The pure symmetrical triangle wave has
For the rectangular pulse train with the duty cycle μ (called sometimes the cyclic ratio), the THDF has the form
and logically, reaches the minimum (≈0.483) when the signal becomes symmetrical μ = 0.5, i.e. the pure square wave. [1] Appropriate filtering of these signals may drastically reduce the resulting THD. For instance, the pure square wave filtered by the Butterworth low-pass filter of the second order (with the cutoff frequency set equal to the fundamental frequency) has THDF of 5.3%, while the same signal filtered by the fourth-order filter has THDF of 0.6%. [1] However, analytic computation of the THDF for complicated waveforms and filters often represents a difficult task, and the resulting expressions may be quite laborious to obtain. For example, the closed-form expression for the THDF of the sawtooth wave filtered by the first-order Butterworth low-pass filter is simply
while that for the same signal filtered by the second-order Butterworth filter is given by a rather cumbersome formula [1]
Yet, the closed-form expression for the THDF of the pulse train filtered by the pth-order Butterworth low-pass filter is even more complicated and has the following form: [1]
where μ is the duty cycle, 0 < μ < 1, and
The fundamental frequency, often referred to simply as the fundamental, is defined as the lowest frequency of a periodic waveform. In music, the fundamental is the musical pitch of a note that is perceived as the lowest partial present. In terms of a superposition of sinusoids, the fundamental frequency is the lowest frequency sinusoidal in the sum of harmonically related frequencies, or the frequency of the difference between adjacent frequencies. In some contexts, the fundamental is usually abbreviated as f0, indicating the lowest frequency counting from zero. In other contexts, it is more common to abbreviate it as f1, the first harmonic.
The propagation constant of a sinusoidal electromagnetic wave is a measure of the change undergone by the amplitude and phase of the wave as it propagates in a given direction. The quantity being measured can be the voltage, the current in a circuit, or a field vector such as electric field strength or flux density. The propagation constant itself measures the dimensionless change in magnitude or phase per unit length. In the context of two-port networks and their cascades, propagation constant measures the change undergone by the source quantity as it propagates from one port to the next.
Signal-to-noise ratio is a measure used in science and engineering that compares the level of a desired signal to the level of background noise. SNR is defined as the ratio of signal power to noise power, often expressed in decibels. A ratio higher than 1:1 indicates more signal than noise.
In electrical engineering, a transmission line is a specialized cable or other structure designed to conduct electromagnetic waves in a contained manner. The term applies when the conductors are long enough that the wave nature of the transmission must be taken into account. This applies especially to radio-frequency engineering because the short wavelengths mean that wave phenomena arise over very short distances. However, the theory of transmission lines was historically developed to explain phenomena on very long telegraph lines, especially submarine telegraph cables.
In atomic physics, hyperfine structure is defined by small shifts in otherwise degenerate electronic energy levels and the resulting splittings in those electronic energy levels of atoms, molecules, and ions, due to electromagnetic multipole interaction between the nucleus and electron clouds.
In physics, a wave vector is a vector used in describing a wave, with a typical unit being cycle per metre. It has a magnitude and direction. Its magnitude is the wavenumber of the wave, and its direction is perpendicular to the wavefront. In isotropic media, this is also the direction of wave propagation.
In signal processing, the output of the matched filter is given by correlating a known delayed signal, or template, with an unknown signal to detect the presence of the template in the unknown signal. This is equivalent to convolving the unknown signal with a conjugated time-reversed version of the template. The matched filter is the optimal linear filter for maximizing the signal-to-noise ratio (SNR) in the presence of additive stochastic noise.
The Voigt profile is a probability distribution given by a convolution of a Cauchy-Lorentz distribution and a Gaussian distribution. It is often used in analyzing data from spectroscopy or diffraction.
In probability theory and directional statistics, the von Mises distribution is a continuous probability distribution on the circle. It is a close approximation to the wrapped normal distribution, which is the circular analogue of the normal distribution. A freely diffusing angle on a circle is a wrapped normally distributed random variable with an unwrapped variance that grows linearly in time. On the other hand, the von Mises distribution is the stationary distribution of a drift and diffusion process on the circle in a harmonic potential, i.e. with a preferred orientation. The von Mises distribution is the maximum entropy distribution for circular data when the real and imaginary parts of the first circular moment are specified. The von Mises distribution is a special case of the von Mises–Fisher distribution on the N-dimensional sphere.
In probability theory and statistics, the chi distribution is a continuous probability distribution over the non-negative real line. It is the distribution of the positive square root of a sum of squared independent Gaussian random variables. Equivalently, it is the distribution of the Euclidean distance between a multivariate Gaussian random variable and the origin. The chi distribution describes the positive square roots of a variable obeying a chi-squared distribution.
Ripple in electronics is the residual periodic variation of the DC voltage within a power supply which has been derived from an alternating current (AC) source. This ripple is due to incomplete suppression of the alternating waveform after rectification. Ripple voltage originates as the output of a rectifier or from generation and commutation of DC power.
Plasma parameters define various characteristics of a plasma, an electrically conductive collection of charged and neutral particles of various species that responds collectively to electromagnetic forces. Such particle systems can be studied statistically, i.e., their behaviour can be described based on a limited number of global parameters instead of tracking each particle separately.
Toroidal coordinates are a three-dimensional orthogonal coordinate system that results from rotating the two-dimensional bipolar coordinate system about the axis that separates its two foci. Thus, the two foci and in bipolar coordinates become a ring of radius in the plane of the toroidal coordinate system; the -axis is the axis of rotation. The focal ring is also known as the reference circle.
The Π pad is a specific type of attenuator circuit in electronics whereby the topology of the circuit is formed in the shape of the Greek capital letter pi (Π).
In the theory of special functions, Whipple's transformation for Legendre functions, named after Francis John Welsh Whipple, arise from a general expression, concerning associated Legendre functions. These formulae have been presented previously in terms of a viewpoint aimed at spherical harmonics, now that we view the equations in terms of toroidal coordinates, whole new symmetries of Legendre functions arise.
In non ideal fluid dynamics, the Hagen–Poiseuille equation, also known as the Hagen–Poiseuille law, Poiseuille law or Poiseuille equation, is a physical law that gives the pressure drop in an incompressible and Newtonian fluid in laminar flow flowing through a long cylindrical pipe of constant cross section. It can be successfully applied to air flow in lung alveoli, or the flow through a drinking straw or through a hypodermic needle. It was experimentally derived independently by Jean Léonard Marie Poiseuille in 1838 and Gotthilf Heinrich Ludwig Hagen, and published by Hagen in 1839 and then by Poiseuille in 1840–41 and 1846. The theoretical justification of the Poiseuille law was given by George Stokes in 1845.
In an electric power system, a harmonic of a voltage or current waveform is a sinusoidal wave whose frequency is an integer multiple of the fundamental frequency. Harmonic frequencies are produced by the action of non-linear loads such as rectifiers, discharge lighting, or saturated electric machines. They are a frequent cause of power quality problems and can result in increased equipment and conductor heating, misfiring in variable speed drives, and torque pulsations in motors and generators.
In probability theory and directional statistics, a wrapped Lévy distribution is a wrapped probability distribution that results from the "wrapping" of the Lévy distribution around the unit circle.
A distortionmeter is an electronic measuring instrument which displays the amount of distortion added to the original signal by an electronic circuit.
A loop-gap resonator (LGR) is an electromagnetic resonator that operates in the radio and microwave frequency ranges. The simplest LGRs are made from a conducting tube with a narrow slit cut along its length. The LGR dimensions are typically much smaller than the free-space wavelength of the electromagnetic fields at the resonant frequency. Therefore, relatively compact LGRs can be designed to operate at frequencies that are too low to be accessed using, for example, cavity resonators. These structures can have very sharp resonances making them useful for electron spin resonance (ESR) experiments, and precision measurements of electromagnetic material properties.
It has been shown that THDF is a much better measure of harmonics content. Employment of THDR in measurements may yield high errors in significant quantities such as power factor and distortion factor
This is the ratio, usually expressed in percent, of the summation of the root mean square (RMS) voltage values for all harmonics present in the output of an audio system, as compared to the RMS voltage at the output for a pure sinewave test signal that is applied to the input of the audio system.
This number indicates the RMS voltage equivalent of total harmonic distortion power, as a percentage of the total output RMS voltage.
Two equations exist to calculate the THD…
In the opinion of some, [THDF] exaggerates the harmonic problem. … [THDR] is used by the Canadian Standards Association and the IEC.
%THD-F … ratio of the harmonic components … to the voltage … of the fundamental alone. … %THD-R … ratio of the harmonic components … to the total voltage … including the fundamental and all harmonics.
[Crossover distortion] may barely register on a distortion meter, so the figures looked excellent. Unfortunately … listeners could hear the distortion - it was plainly audible, and sounded dreadful.
High-Order Harmonic Distortion (HOHD…) – A classic method for rub & buzz detection, HOHD uses the THD (Total Harmonic Distortion) ratio but only of harmonics above the 10th, 10-35, 20-200, etc., which is a simple way to account for frequency masking effects. … Rub & Buzz Loudness … Applies a psycho-acoustic loudness model to the residual signal to calculate the perceived level of the rub and buzz
HHD (higher harmonic distortion for harmonics from the 10th up to at most the 50th)