The Hamming window is a taper formed by using a weighted cosine
Parameters(numpy.hamming(M)): M : int Number of points in the output window. If zero or less, an empty array is returned. Returns: out : array
The window, with the maximum value normalized to one (the value one appears only if the number of samples is odd).
[ 0.08 0.15302337 0.34890909 0.60546483 0.84123594 0.98136677 0.98136677 0.84123594 0.60546483 0.34890909 0.15302337 0.08 ]
Plotting the window and its frequency response (requires SciPy and matplotlib):
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course