ParametrizedNearestSimplexExtrapolator

class pyirf.interpolation.ParametrizedNearestSimplexExtrapolator(grid_points, params)[source]

Bases: ParametrizedExtrapolator

Extrapolator class extending linear or baryzentric interpolation outside a grid’s convex hull.

Methods Summary

__call__(target_point)

Providing a common __call__ interface

extrapolate(target_point)

Takes a grid of scalar values for a bunch of different parameters and extrapolates it to given value of those parameters.

Methods Documentation

__call__(target_point)

Providing a common __call__ interface

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

Target for extrapolation

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

Takes a grid of scalar values for a bunch of different parameters and extrapolates it to given value of those parameters.

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

Value for which the extrapolation is performed (target point)

Returns:
values: numpy.ndarray, shape=(1,…)

Extrapolated values