THD + N (internal sinusoid)

Use this to compute THD+N if the sinusoid is generated from WinMLS.