ParametrizedComponentEstimator
- class pyirf.interpolation.ParametrizedComponentEstimator(grid_points, params, interpolator_cls=<class 'pyirf.interpolation.griddata_interpolator.GridDataInterpolator'>, interpolator_kwargs=None, extrapolator_cls=None, extrapolator_kwargs=None)[source]
Bases:
BaseComponentEstimator
Base class for all Estimators working on IRF components that represent parametrized or scalar quantities.
While usable, it is encouraged to use the actual class for the respective IRF component as it ensures further checks and if necessary e.g. unit handling.
Methods Summary
__call__
(target_point)Inter-/ Extrapolation as needed and sanity checking of the target point
Methods Documentation
- __call__(target_point)
Inter-/ Extrapolation as needed and sanity checking of the target point
- Parameters:
- target_point: np.ndarray, shape=(1, n_dims)
Target for inter-/extrapolation
- Returns:
- Interpolated or, if necessary extrapolated, result.
- Raises:
- TypeError:
When target_point is not an np.ndarray
- ValueError:
When more then one target_point is given
- ValueError:
When target_point and grid_points have miss-matching dimensions
- ValueError:
When target_point is outside of the grids convex hull but extrapolator is None
- Warning:
When target_points need extrapolation