std1.0.0-beta-7 SafeC docs

Module dsp::window

#include <std/dsp/window.h> source

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_rectangularw[i] = 1 (no tapering — included for a uniform interface, and as an FFT/leakage baseline to compare the others against)
window_hannw[i] = 0.5*(1 - cos(2pii/(n-1)))
window_hammingw[i] = 0.54 - 0.46cos(2pi*i/(n-1))
window_blackmanw[i] = 0.42 - 0.5cos(2pii/(n-1)) + 0.08cos(4pii/(n-1))
window_applyApplies window 'w' to signal 'x' in place: x[i] *= w[i], for i in [0,n).
window_rectangular_f32Single precision: the same windows (computed in double, rounded once).
window_hann_f32
window_hamming_f32
window_blackman_f32
window_apply_f32