functioncalculateTHD
Compute Total Harmonic Distortion from amplitude of FFT
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | iBase | A_buf[iBase] is computed base frequency | |
| Integer | n_harmonics | Number of harmonics to take into account | |
| Real[:] | A_buf |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Real | thd |
Revisions
| Date | Description |
|---|---|
| Nov. 29, 2015 |
Initial version implemented by
Martin R. Kuhn and Martin Otter
(DLR Institute of System Dynamics and Control) The research leading to these results has received funding from the European Union’s Seventh Framework Programme (FP7/2007-2016) for the Clean Sky Joint Technology Initiative under grant agreement no. CSJU-GAM-SGO-2008-001. |