def __call__(self, *args):
        xi = _ndim_coords_from_arrays(args, ndim=self.points.shape[1])
        xi = self._check_call_shape(xi)
        xi = self._scale_x(xi)
        dist, i = self.tree.query(xi)
        return self.values[i]


#------------------------------------------------------------------------------
# Convenience interface function
#------------------------------------------------------------------------------
Evaluate interpolator at given points.
dataset/ETHPy150Open scipy/scipy/scipy/interpolate/ndgriddata.py/NearestNDInterpolator.__call__