Skip to main content

hann_window

Function hann_window 

Source
pub fn hann_window(n: usize) -> Vec<f64>
Expand description

Generate a Hann window of length n.

w[k] = sin²(π k / (n-1)) for k = 0..n-1.