pub fn hann_window(n: usize) -> Vec<f64>
Generate a Hann window of length n.
n
w[k] = sin²(π k / (n-1)) for k = 0..n-1.
w[k] = sin²(π k / (n-1))