PLECS 3.3 Online Help |
Calculate total harmonic distortion (THD) of input signal
Control / Discrete
This block calculates the total harmonic distortion of a periodic input signal based on discrete samples. The sample time and the number of samples can be specified. The THD is defined as:
where is the RMS value of the
th harmonic of the input signal and
is
its overall RMS value. The fundamental frequency
of the running window is