[Numpy-discussion] Fast histogram

Zachary Pincus zachary.pincus@yale....
Thu Apr 17 13:17:03 CDT 2008


Combining Sebastian and Jae-Joon's suggestions, I have something that  
might work:

 >>> timeit numpy.bincount(array.flat)
10 loops, best of 3: 28.2 ms per loop

This is close enough to video-rate... And I can then combine bins as  
needed to get a particular bin count/range after the fact.

Thanks, everyone,

Zach


More information about the Numpy-discussion mailing list