Repository: scipy/scipy
File: scipy/interpolate/_ndgriddata.py (Python)

Code before:

        ``cubic`` (2-D)
          return the value determined from a
          piecewise cubic, continuously differentiable (C1), and
          approximately curvature-minimizing polynomial surface. See
          `CloughTocher2DInterpolator` for more details.
    fill_value : float, 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``. This option has no effect for the
        'nearest' method.
    rescale : bool, 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.

        .. versionadded:: 0.14.0
    simplex_tolerance : float, optional
        Multiplier for the default tolerance QHull uses to assign
        a simplex to the xi.  Default is 1.0.  Increase if there are
        difficulties assigning points to simplexes; this is most
        reproducible with points exatly on the border of a very
        oblique triangle.  Only relevant for linear and 2-D cubic
        interpolation.

        .. versionadded:: 1.17.0

    Returns
    -------
    ndarray
        Array of interpolated values.

    Raises
    ------
    ValueError
        If simplex_tolerance <= 0

    See Also
    --------
    LinearNDInterpolator :
        Piecewise linear interpolator in N dimensions.
    NearestNDInterpolator :
        Nearest-neighbor interpolator in N dimensions.
    CloughTocher2DInterpolator :
        Piecewise cubic, C1 smooth, curvature-minimizing interpolator in 2D.
    interpn : Interpolation on a regular grid or rectilinear grid.
    RegularGridInterpolator : Interpolator on a regular or rectilinear grid
                              in arbitrary dimensions (`interpn` wraps this
                              class).

    Notes

Review comment (suggestion):
```suggestion
        .. versionadded:: 1.18.0
```

Code after:

        ``cubic`` (2-D)
          return the value determined from a
          piecewise cubic, continuously differentiable (C1), and
          approximately curvature-minimizing polynomial surface. See
          `CloughTocher2DInterpolator` for more details.
    fill_value : float, 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``. This option has no effect for the
        'nearest' method.
    rescale : bool, 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.

        .. versionadded:: 0.14.0
    simplex_tolerance : float, optional
        Multiplier for the default tolerance QHull uses to assign
        a simplex to the xi.  Default is 1.0.  Increase if there are
        difficulties assigning points to simplexes; this is most
        reproducible with points exatly on the border of a very
        oblique triangle.  Only relevant for linear and 2-D cubic
        interpolation.

        .. versionadded:: 1.18.0

    Returns
    -------
    ndarray
        Array of interpolated values.

    Raises
    ------
    ValueError
        If simplex_tolerance <= 0

    See Also
    --------
    LinearNDInterpolator :
        Piecewise linear interpolator in N dimensions.
    NearestNDInterpolator :
        Nearest-neighbor interpolator in N dimensions.
    CloughTocher2DInterpolator :
        Piecewise cubic, C1 smooth, curvature-minimizing interpolator in 2D.
    interpn : Interpolation on a regular grid or rectilinear grid.
    RegularGridInterpolator : Interpolator on a regular or rectilinear grid
                              in arbitrary dimensions (`interpn` wraps this
                              class).

    Notes