Compute Thd
compute_thdCompute total harmonic distortion from an LTspice raw waveform by specifying the signal and fundamental frequency, returning THD results for simulation analysis.
Instructions
Total harmonic distortion.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"raw_path": "<raw_path>",
"signal": "<signal>",
"fundamental_hz": "<fundamental_hz>"
},
"name": "compute_thd"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signal | Yes | ||
| raw_path | Yes | ||
| fundamental_hz | Yes | ||
| workspace_root | No | Optional per-call workspace root override. |