[Numpy-discussion] Hamming etc. windows are wrong

Dave Cook daverz at gmail.com
Sun Sep 28 15:05:59 EDT 2014

On Fri, Sep 26, 2014 at 1:41 AM, Jerry <lanceboyle at qwest.net> wrote:

> I’ve noticed that the Hamming window (and I suppose other windows)
> provided by Octave, SciPy****, and NumPy***** is wrong, returning a window
> that is symmetric rather than one that is “DFT symmetric.” This is easily
> spotted by looking at the first and last points of the window; if they are
> the same values, then the window is incorrect.

If you use signal.get_window(), the default is sym=False:

def get_window(window, Nx, fftbins=True):
    # snip
    sym = not fftbins

Dave Cook
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140928/44ef64a1/attachment.html>

More information about the NumPy-Discussion mailing list