numpy.hanning()

numpy.hanning

numpy.hanning(M) [source]

Return the Hanning window.

The Hanning window is a taper formed by using a weighted cosine.

Parameters:

M : int

Number of points in the output window. If zero or less, an empty array is returned.

Returns:

out : ndarray, shape(M,)

The window, with the maximum value normali