pub fn hamming_window(n: usize) -> Vec<f64>
Generate a Hamming window of length n.
n
w[k] = 0.54 - 0.46 cos(2π k / (n-1))