Skip to content

[FEATURE] Interpolator #165

@henryiii

Description

@henryiii

We should add an Interpolator class that can interpolate histograms.

Idea for usage:

# Linear interpolation
f = hist.interp.Linear(h)
x = f(2.3)

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.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions