PLECS 2.1 Online Help |
Calculate the total harmonic distortion (THD) of the input signal.
Extras/Discrete Analysis
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