Total Harmonic Distortion (THDi) is a measure of all the harmonics induced in a system compared to a normal sinewave.