DiscretePDFInterpolator
- class pyirf.interpolation.DiscretePDFInterpolator(grid_points, bin_edges, binned_pdf, normalization=PDFNormalization.AREA)[source]
Bases:
BaseInterpolator
Base class for all interpolators used with binned IRF components like EDisp. 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