interpolate#

natinterp3d.Interpolator.interpolate(query_points, values)[source]#

Interpolate function values at query points using the natural interpolation method.

Parameters:
  • query_points (ndarray) – The points at which to evaluate the function. Shape (N, 3).

  • values (ndarray) – The values of the function at the known points, which were originally passed in the constructor. Shape (M, D) or (M,).

Returns:

The interpolated values of the function at the query points. Shape (N, D) or (N,), depending on the shape of the values array.

Return type:

ndarray