Dsp Window
dsp_windowCompute window samples and spectral properties such as coherent gain, equivalent noise bandwidth, scalloping loss, side-lobe level, and 3 dB bandwidth for spectrum analysis or filter design.
Instructions
Window function and its properties: coherent gain, equivalent noise bandwidth (bins), scalloping loss, highest side-lobe level and 3 dB bandwidth, computed numerically (zero-padded FFT refined by the exact DTFT) and compared with the textbook closed values for rectangular, hann, hamming, blackman and flattop. Also kaiser (give kaiser_beta). Returns the window samples and its magnitude response near the main lobe as CSV. periodic=true is the form used in spectrum analysis, false the symmetric form for filter design.
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": {
"window": "<window>"
},
"name": "dsp_window"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| length | No | Number of samples, 8..65536 | |
| window | Yes | rectangular, hann, hamming, blackman, flattop or kaiser | |
| periodic | No | Periodic (DFT-even, spectrum analysis; default true) or symmetric (filter design) form | |
| kaiser_beta | No | Kaiser only: beta, 0..50 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Non-quantity payload (reports, listings) | |
| error | No | ||
| value | No | Primary quantity result | |
| values | No | All named quantity results (includes the primary) | |
| warnings | No | ||
| artifacts | No | ||
| provenance | Yes | What produced the result and from which inputs. | |
| review_status | No | unreviewed |