Skip to main content

blackman_harris_window

Function blackman_harris_window 

Source
pub fn blackman_harris_window(out: &mut [f32]) -> Result<(), AudioError>
Expand description

Fill out with a 4-term Blackman–Harris window of length out.len().

Periodic convention with the standard minimum-side-lobe coefficients (≈ −92 dB): w[n] = a0 − a1·cos(2πn/N) + a2·cos(4πn/N) − a3·cos(6πn/N) where a0 = 0.35875, a1 = 0.48829, a2 = 0.14128, a3 = 0.01168 and N = out.len().

Returns AudioError::InvalidParameter if out is empty.