Blackman window : It is a taper formed by using the first three terms of a summation of cosines. It was designed to have close to the minimal leakage possible. It is close to optimal, only slightly worse than a Kaiser window.
Parameters(numpy.blackman): 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).
[ -1.38777878e-17 3.26064346e-02 1.59903635e-01 4.14397981e-01 7.36045180e-01 9.67046769e-01 9.67046769e-01 7.36045180e-01 4.14397981e-01 1.59903635e-01 3.26064346e-02 -1.38777878e-17]
Plotting the window and its frequency response (requires SciPy and matplotlib):
Code : For Window:
Code : For frequency:
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