Skip to main content

tukey

Function tukey 

Source
pub fn tukey(m: usize, alpha: f64) -> FerrayResult<Array<f64, Ix1>>
Expand description

Tukey (cosine-tapered) window with taper ratio alpha ∈ [0, 1].

alpha = 0 gives a rectangular window; alpha = 1 gives a Hann window. The middle (1 - alpha) * (M - 1) samples are unity, and the edges are tapered with a half-cosine.

Mirrors scipy.signal.windows.tukey / torch.signal.windows.tukey.