set_interpolator()

set_interpolator()#

InterpDiscreteModel.set_interpolator(InterpolatorClass)#

Set the interpolator for the operator entries.

Parameters:
InterpolatorClasstype

Class for the elementwise interpolation. Must obey the syntax

>>> interpolator = InterpolatorClass(data_points, data_values)
>>> interpolator_evaluation = interpolator(new_data_point)

This can be, e.g., a class from scipy.interpolate. If None (default), use scipy.interpolate.CubicSpline for one-dimensional parameters and scipy.interpolate.LinearNDInterpolator otherwise.