MomentMorphNearestSimplexExtrapolator

class pyirf.interpolation.MomentMorphNearestSimplexExtrapolator(grid_points, bin_edges, binned_pdf, normalization=PDFNormalization.AREA)[source]

Bases: DiscretePDFExtrapolator

Extrapolator class extending moment morphing interpolation outside a grid’s convex hull.

Methods Summary

__call__(target_point)

Providing a common __call__ interface

extrapolate(target_point)

Takes a grid of discretized PDFs 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 discretized PDFs 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, …, n_bins)

Extrapolated discretized PDFs