[Numpy-tickets] [NumPy] #605: Incorerdct behaviour of numpy.hiistogram

NumPy numpy-tickets@scipy....
Sun Nov 4 10:48:46 CST 2007

#605: Incorerdct behaviour of numpy.hiistogram
 Reporter:  Elby       |       Owner:  somebody
     Type:  defect     |      Status:  new     
 Priority:  normal     |   Milestone:  1.0.4   
Component:  numpy.lib  |     Version:  none    
 Severity:  normal     |    Keywords:          
 The behavior of numpy.histogram is not consistent with its doc string :
  - doc string says that, with a range argument, values outside of this
 range are allocated to the closest bin.
  - in fact values below the range are simply ignored.

 There was a discussion on this subject on the scipy.user mailing list:

 IMHO, the current behavior of numpy.histogram, that is assuming that
 values below the range are outliers, is not what a neophyte is waiting
 for, and should be clearly stated.

 Besides, the user should have the possibility to choose what to do with
 values outside the range : just ignoring them is not a good idea in most
 of the case I've seen.

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

More information about the Numpy-tickets mailing list