Why does numpy.histogram (Python) leave off one element as compared to hist in Matlab?
Note that in matlab’s hist(x, vec), vec difines the bin-centers, while in matlab histc(x, vec) vec defines the bin-edges of the histogram. Numpy’s histogram seems to work with bin-edges. Is this difference important to you? It should be easy to convert from one to the other, and you might have to add an extra Inf … Read more