cupy.hanning#

cupy.hanning(M)[source]#

Returns the Hanning window.

The Hanning window is defined as

\[w(n) = 0.5 - 0.5\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.hanning()