Interpolator
A general purpose that takes your data and just interpolates it without whining or making you do a pile of extra work
DefaultExtrapolator: ExtrapolatorType
__init__(self, grid, vals, interpolation_function=None, interpolation_order=None, extrapolator=None, extrapolation_order=None, **interpolation_opts):
grid
:np.ndarray
an unstructured grid of points or a structured grid of points or a 1D array
vals
:np.ndarray
the values at the grid points
interpolation_function
:None | BasicInterpolator
the basic function to be used to handle the raw interpolation
interpolation_order
:int | str | None
the order of extrapolation to use (when applicable)
extrapolator
:Extrapolator | None | str | function
the extrapolator to use for data points not on the grid
extrapolation_order
:int | str | None
the order of extrapolation to use by default
interpolation_opts
:Any
the options to be fed into the interpolating_function
get_interpolator(grid, vals, interpolation_order=None, allow_extrapolation=True, **opts):
Returns a function that can be called on grid points to interpolate them
grid
:Mesh
vals
:np.ndarray
interpolation_order
:int | str | None
opts
:Any
:returns
:function
i n t e r p o l a t o r
get_extrapolator(grid, vals, extrapolation_order=1, **opts):
Returns an Extrapolator that can be called on grid points to extrapolate them
grid
:Mesh
extrapolation_order
:int
:returns
:Extrapolator
e x t r a p o l a t o r
apply(self, grid_points, **opts):
Interpolates then extrapolates the function at the grid_points
grid_points
:Any
:returns
:_
derivative(self, order):
Returns a new function representing the requested derivative of the current interpolator
order
:Any
:returns
:_
__call__(self, *args, **kwargs):