I have learned that Scipy's implementation of the Hann window allows receiving both a symmetric window, and a periodic window (meaning the last zero element is dropped). As far as I understand, the periodic window is preferable for the DFT as it has a thinner main lob.
- Based on the same logic, the Hanning window, a Hann window with both edges dropped, would have even better performance. Why is it not used?
- Why are symmetric windows preferable for filter design?
Later comment
Maybe it is related to the phase consistency. What about the Welch method for which it is non-relevant?
hann()andhanning(). The equation is the same (generalized cosine window) but, for a window of size $N$, $\text{Hann}(n) = 0.5 - 0.5\cos(2\pi n / (N-1)), , 0\leq n <= N-1$, $\text{Hanning}(n) = 0.5 - 0.5\cos(2\pi n / (N+1)), , 1 \leq n <= N$ – Jdip Sep 20 '23 at 23:32