pub fn hanning<T>(i: T, n: i32) -> f64 where
    T: WindowInput