multihist
multihist copied to clipboard
Convenience wrappers around numpy's histogram and histogram2d
It would be nice if there was an option to clip input data that is out of range of the histogram to the nearest bin in range.
Something like ``` mh.Histdd(...) means, errors = mh.profile(axis=0) ``` and ``` mh.profileplot(axis=0) ``` maybe even some fitting shortcuts?
Before, multihist would not complain when I added two nD-hists even if they had different dimensionality. This could result in ambiguous results so in this PR I added some checks...
This PR modifies the function `Histdd.slice`, to let it support binning fragment when the `start` or `stop` are not exactly at the bin edges. The fragments are calculated by multiplying...