Introduction - If you have any usage issues, please Google them yourself
First read the CSV file, and CSV is a character format text file. Then, the input signal is decomposed into A0 DC component, A1 fundamental frequency component, A22 harmonic, A33 harmonic. N noise. The FFT algorithm with Hanning window is adopted. Finally, the total harmonic loss rate THD (%) is obtained.