[Numpy-tickets] [NumPy] #369: One-point windows invalid

NumPy numpy-tickets at scipy.net
Mon Oct 30 15:42:38 CST 2006

#369: One-point windows invalid
 Reporter:  albertstrasheim  |       Owner:  somebody   
     Type:  defect           |      Status:  new        
 Priority:  normal           |   Milestone:  1.0 Release
Component:  numpy.core       |     Version:  devel      
 Severity:  normal           |    Keywords:             
 The blackman, bartlett, hanning and hamming windows return invalid values
 for 1-point windows, e.g.

 In [4]: N.hamming(1)
 Warning: invalid value encountered in divide
 Out[4]: Warning: invalid value encountered in absolute

 MATLAB returns:
 >> hamming(1)
 ans =

 Having these functions return valid 1-point windows is useful when writing
 unit tests for other code.

Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/369>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.

More information about the Numpy-tickets mailing list