scipy.interpolate.NearestNDInterpolator

class scipy.interpolate.NearestNDInterpolator(points, values)[source]

Nearest-neighbour interpolation in N dimensions.

New in version 0.9.

Parameters :

points : ndarray of floats, shape (npoints, ndims)

Data point coordinates.

values : ndarray of float or complex, shape (npoints, ...)

Data values.

Notes

Uses scipy.spatial.cKDTree

Methods

__call__(*args) Evaluate interpolator at given points.

Previous topic

scipy.interpolate.LinearNDInterpolator.__call__

Next topic

scipy.interpolate.NearestNDInterpolator.__call__