BaseExtrapolator

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

Bases: object

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

Methods Summary

__call__(target_point)

Providing a common __call__ interface

extrapolate(target_point)

Overridable function for the actual extrapolation code

Methods Documentation

__call__(target_point)[source]

Providing a common __call__ interface

Parameters:
target_point: np.ndarray, shape=(1, n_dims)

Target for extrapolation

Returns:
Extrapolated result.
abstract extrapolate(target_point)[source]

Overridable function for the actual extrapolation code