preprocess_signal
Preprocesses stator-current signals for spectral analysis by removing DC offset, applying notch and bandpass filters, normalising, and windowing.
Instructions
Preprocess a stator-current signal for spectral analysis.
Applies (in order): DC offset removal → notch filtering → bandpass filtering → normalisation → windowing. Returns the preprocessed signal.
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": {
"signal": "<signal>",
"sampling_freq_hz": "<sampling_freq_hz>"
},
"name": "preprocess_signal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signal | Yes | Raw current signal as a list of amplitude values | |
| sampling_freq_hz | Yes | Sampling frequency in Hz | |
| nominal_current | No | Nominal current for normalisation (A). Omit for RMS normalisation | |
| window | No | Window function: hann, hamming, blackman, flattop, rectangular | hann |
| bandpass_low_hz | No | Lower bandpass cutoff in Hz (optional) | |
| bandpass_high_hz | No | Upper bandpass cutoff in Hz (optional) | |
| notch_freqs_hz | No | Frequencies to notch-filter (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |