Total Harmonic Distortion (THD) is a critical parameter in power systems, indicating the presence and impact of harmonics in electrical networks. Ha…