daxs.interpolators: Interpolators#

The module provides interpolators.

class daxs.interpolators.Interpolator2D(x: ndarray[Any, dtype[float64]], y: ndarray[Any, dtype[float64]], z: ndarray[Any, dtype[float64]], kind: str = 'linear', fill_value: float = nan)[source]#

Bases: object

Two-dimensional interpolator.

__init__(x: ndarray[Any, dtype[float64]], y: ndarray[Any, dtype[float64]], z: ndarray[Any, 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.

update(parameters: dict[str, Any])[source]#

Update the interpolator parameters.