SciPy

scipy.interpolate.LinearNDInterpolator

class scipy.interpolate.LinearNDInterpolator(points, values, fill_value=np.nan, rescale=False)

Piecewise linear interpolant in N dimensions.

New in version 0.9.

Parameters
pointsndarray of floats, shape (npoints, ndims); or Delaunay

Data point coordinates, or a precomputed Delaunay triangulation.

valuesndarray of float or complex, shape (npoints, …)

Data values.

fill_valuefloat, optional

Value used to fill in for requested points outside of the convex hull of the input points. If not provided, then the default is nan.

rescalebool, optional

Rescale points to unit cube before performing interpolation. This is useful if some of the input dimensions have incommensurable units and differ by many orders of magnitude.

Notes

The interpolant is constructed by triangulating the input data with Qhull [Rb6d8aaa8ff0b-1], and on each triangle performing linear barycentric interpolation.

References

Rb6d8aaa8ff0b-1

http://www.qhull.org/

Methods

__call__(xi)

Evaluate interpolator at given points.

Previous topic

scipy.interpolate.griddata

Next topic

scipy.interpolate.LinearNDInterpolator.__call__