BaseInterpolator

class pyirf.interpolation.BaseInterpolator(grid_points)[source]

Bases: object

Base class for all interpolators, only knowing grid-points, providing a common __call__-interface.

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)[source]

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)[source]

Overridable function for the actual interpolation code