EnergyDispersionEstimator

class pyirf.interpolation.EnergyDispersionEstimator(grid_points, migra_bins, energy_dispersion, interpolator_cls=<class 'pyirf.interpolation.quantile_interpolator.QuantileInterpolator'>, interpolator_kwargs=None, extrapolator_cls=None, extrapolator_kwargs=None, axis=-2)[source]

Bases: DiscretePDFComponentEstimator

Estimator class for energy dispersions (EDISP_2D).

Methods Summary

__call__(target_point)

Estimating energy dispersions at target_point, inter-/extrapolates as needed and specified in __init__.

Methods Documentation

__call__(target_point)[source]

Estimating energy dispersions at target_point, inter-/extrapolates as needed and specified in __init__.

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

Target for inter-/extrapolation

Returns:
edisp_interp: np.ndarray, shape=(n_points, …, n_migration_bins, …)

Interpolated EDISP matrix with same shape as input matrices. For EDISP_2D of shape (n_points, n_energy_bins, n_migration_bins, n_fov_offset_bins)