Skip to main content

hamming

Function hamming 

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

Return the Hamming window of length m.

The Hamming window is defined as: w(n) = 0.54 - 0.46 * cos(2pin/(M-1))

This is equivalent to numpy.hamming(M).

ยงErrors

Returns an error only if internal array construction fails.