Module dsp::window
Window Functions
Symmetric N-point analysis windows for spectral work (tapering a frame before an FFT to reduce spectral leakage) and FIR filter design (window method). All four write into a caller-provided 'w' array of length n; none allocate.
Functions
| window_rectangular | w[i] = 1 (no tapering — included for a uniform interface, and as an FFT/leakage baseline to compare the others against) |
| window_hann | w[i] = 0.5*(1 - cos(2pii/(n-1))) |
| window_hamming | w[i] = 0.54 - 0.46cos(2pi*i/(n-1)) |
| window_blackman | w[i] = 0.42 - 0.5cos(2pii/(n-1)) + 0.08cos(4pii/(n-1)) |
| window_apply | Applies window 'w' to signal 'x' in place: x[i] *= w[i], for i in [0,n). |
| window_rectangular_f32 | Single precision: the same windows (computed in double, rounded once). |
| window_hann_f32 | |
| window_hamming_f32 | |
| window_blackman_f32 | |
| window_apply_f32 |