pub fn window_func<S: Scalar>(window: &Window, n: usize) -> Vec<S>
Generate window function coefficients.
Returns a vector of length n with the window weights.
n