GridDataInterpolator

class pyirf.interpolation.GridDataInterpolator(grid_points, params, **griddata_kwargs)[source]

Bases: ParametrizedInterpolator

“Wrapper arounf scipy.interpolate.griddata.

Methods Summary

__call__(target_point)

Providing a common __call__ interface

interpolate(target_point)

Wrapper around scipy.interpolate.griddata [1]

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.
interpolate(target_point)[source]

Wrapper around scipy.interpolate.griddata [1]

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

Target point for interpolation

Returns:
interpolant: np.ndarray, shape=(1, …, n_params)

Interpolated parameter values

References