-
Notifications
You must be signed in to change notification settings - Fork 25
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
[FEATURE] Interpolator #165
Comments
just as a consideration in pyhf we have a few interpolators, but often they are initialized with multiple hisotgrams e.g.
where |
So these return histograms, rather than values? |
yeah usually we're interested in interpolating between histograms so that you have a parametrised family of histograms, such that for each parameter value you get a full histogram.. for most of the interpolations you can also think of it as a single bin interpolation (returning a float) just applied to all bins |
FWIW I like the idea of an interface such as |
We should add an Interpolator class that can interpolate histograms.
Idea for usage:
An
Interpolator
would take a histogram, and would be callable, with the positional or keyword axes, and would return the interpolated value at that point, making the histogram act like a function. We could have a shortcut directly on the hist to do the above, but the design should be as seen above.The text was updated successfully, but these errors were encountered: