Skip to main content

cosine

Function cosine 

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

The cosine window is defined by a specific mathematical formula that involves the sine function. The coefficients are computed based on the position within the window and the total length, with special handling for symmetric and periodic windows to ensure proper shape and spectral properties.