Skip to main content

generate_window

Function generate_window 

Source
pub fn generate_window(window_type: WindowType, m: usize, sym: bool) -> Vec<f64>
Expand description

The following functions implement specific window types by calling the general cosine function with appropriate coefficients, or by directly computing the window coefficients based on their mathematical definitions. Each function takes the desired window length m and a boolean sym indicating whether the window should be symmetric or periodic, and returns a vector of window coefficients that can be applied to a signal for spectral analysis or other processing tasks.