ParametrizedInterpolator
- class pyirf.interpolation.ParametrizedInterpolator(grid_points, params)[source]
Bases:
BaseInterpolator
Base class for all interpolators used with IRF components that can be independently interpolated, e.g. parametrized ones like 3Gauss but also AEff. Derived from pyirf.interpolation.BaseInterpolator
Methods Summary
__call__
(target_point)Providing a common __call__ interface
interpolate
(target_point)Overridable function for the actual interpolation code
Methods Documentation
- __call__(target_point)
Providing a common __call__ interface
- Parameters:
- target_point: np.ndarray, shape=(1, n_dims)
Target for inter-/extrapolation When target_point is outside of the grids convex hull but extrapolator is None
- Returns:
- Interpolated result.
- abstract interpolate(target_point)
Overridable function for the actual interpolation code