Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] in multidimensional histograms allow the binning to vary along an axis #746

Open
tmombaecher opened this issue Jun 3, 2022 · 0 comments

Comments

@tmombaecher
Copy link

We are trying to implement a binning scheme (in 3D) where the binning varies along the axes (calibration of PID in kinematic bins at LHCb).
boost_histogram supports variable-sized bins via

import boost_histogram as bh
h = bh.Histogram(bh.axis.Variable(...), bh.axis.Variable(...), bh.axis.Variable(...))

but we would like to do it a bit more complex. A little example in a 2D grid between [0,1] for x and y:
binedges in x: [0,5.2]
binedges in y: [0,3.5] for the first bin in x and [0,5.5] for the second bin in x
(and then the extension of the same idea to 3D)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant