cupy.hamming#

cupy.hamming(M)[source]#

Returns the Hamming window.

The Hamming window is defined as

\[w(n) = 0.54 - 0.46\cos\left(\frac{2\pi{n}}{M-1}\right) \qquad 0 \leq n \leq M-1\]
Parameters:

M (int) – Number of points in the output window. If zero or less, an empty array is returned.

Returns:

Output ndarray.

Return type:

ndarray

See also

numpy.hamming()