photonpacket.bincountnd module¶
-
photonpacket.bincountnd.bincountnd(array, shape)[source]¶ Multidimensional histogram
- array
numpy.ndarray 2D array, first dimension being the coordinates, second subsequent counts
- shapetuple of ints
list of sizes of dimensions
- Returns
- histogram
numpy.ndarray histogram of counts
- histogram
Notes
The behaviour of this function mimics
numpy.bincount()in many dimensions.- array