pub fn create_window<F>(_windowtype: &str, length: usize) -> Result<Vec<F>>where F: Float + FromPrimitive,
Create a window function