UnstructuredInterpolator#

class ctapipe.utils.UnstructuredInterpolator(keys, values, function_name=None, remember_last=False, bounds=None, dtype=None)[source]#

Bases: object

This class performs linear interpolation between an unstructured set of data points. However the class is expanded such that it can interpolate between the values returned from class member functions. The primary use case of this being to interpolate between the predictions of a set of machine learning algorithms or regular grid interpolators. In the case that a numpy array is passed as the interpolation values this class will behave exactly the same as the scipy LinearNDInterpolator

Methods Summary

__call__(points[, eval_points])

Call self as a function.

reset()

Function used to reset some class values stored after previous event, also used as their initialisation in the init function

Methods Documentation

__call__(points, eval_points=None)[source]#

Call self as a function.

reset()[source]#

Function used to reset some class values stored after previous event, also used as their initialisation in the init function