[Numpy-discussion] histogram: sum up values in each bin

Tim Michelsen timmichelsen@gmx-topmail...
Thu Aug 27 07:07:12 CDT 2009

I need some advice on histograms.
If I interpret the documentation [1, 2] for numpy.histogram correctly, the
result of the function is a count of the occurences sorted into each bin.

(n, bins) = numpy.histogram(v, bins=50, normed=1)

But how can I apply another function on these values stacked in each bin?
Like summing them up or building averages?


[1] http://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram.html

More information about the NumPy-Discussion mailing list