daxs.interpolators: Interpolators#
The module provides interpolators.
- class daxs.interpolators.Interpolator2D(x: ndarray[tuple[int, ...], dtype[float64]], y: ndarray[tuple[int, ...], dtype[float64]], z: ndarray[tuple[int, ...], dtype[float64]], kind: str = 'linear', fill_value: float = nan)[source]#
Bases:
objectTwo-dimensional interpolator.
- __init__(x: ndarray[tuple[int, ...], dtype[float64]], y: ndarray[tuple[int, ...], dtype[float64]], z: ndarray[tuple[int, ...], dtype[float64]], kind: str = 'linear', fill_value: float = nan)[source]#
Initialize the 2D interpolator.
- Parameters:
x – X-axis values (1-D array)
y – Y-axis values (1-D array)
z – Data values (1-D array)
kind – The kind of interpolation to use. Options are “nearest” or “linear”.
fill_value – Value used to fill in for requested points outside of the convex hull of the input points.
- property interpolator#
The actual interpolator.