[Numpy-tickets] [NumPy] #605: Incorrect behaviour of numpy.histogram

NumPy numpy-tickets@scipy....
Wed Apr 23 15:18:34 CDT 2008

#605: Incorrect behaviour of numpy.histogram
 Reporter:  Elby       |        Owner:  somebody
     Type:  defect     |       Status:  new     
 Priority:  normal     |    Milestone:  1.1.0   
Component:  numpy.lib  |      Version:  none    
 Severity:  blocker    |   Resolution:          
 Keywords:             |  
Comment (by dhuard):

 The patch makes sure that:
  - outliers are not counted.
  - normalization is done correctly, that is, sum(hist*diff(bins))==1.

 Also, I added support for weights for good measure.

 It breaks the current behavior in the following ways:
  - returns the bin edges (nbins+1) instead of the left bin edges.
  - upper outliers are not put in the closest bin.

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

More information about the Numpy-tickets mailing list