Several analysis techniques are available for assessing the linearity of EIS measurements, the most quantitative of which is to calculate the total harmonic distortion (THD), which is the ratio of the magnitudes of the harmonics relative to the fundamental frequency . The THD, calculated up to the N th harmonic, is given by: