What is total harmonic distortion?

The total harmonic distortion (THD) 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. This will relate to the power supplies only and they are the only component that generates any kind of frequency.