@@ -2232,26 +2232,26 @@ def interp(
2232
2232
determine which interpolant is used:
2233
2233
2234
2234
1. **Interpolation along one dimension of 1D data (`method='linear'`)**
2235
- - Uses :py:class:`numpy.interp`, unless `fill_value='extrapolate'` is provided via `kwargs`.
2235
+ - Uses :py:class:`numpy.interp`, unless `fill_value='extrapolate'` is provided via `kwargs`.
2236
2236
2237
2237
2. **Interpolation along one dimension of N-dimensional data (N ≥ 1)**
2238
- - Methods {"linear", "nearest", "zero", "slinear", "quadratic", "cubic", "quintic", "polynomial"}
2239
- use :py:class:`scipy.interpolate.interp1d`, unless conditions permit the use of :py:class:`numpy.interp`
2240
- (as in the case of `method='linear'` for 1D data).
2241
- - If `method='polynomial'`, the `order` keyword argument must also be provided. In this case,
2242
- :py:class:`scipy.interpolate.interp1d` is called with `kind=order`.
2238
+ - Methods {"linear", "nearest", "zero", "slinear", "quadratic", "cubic", "quintic", "polynomial"}
2239
+ use :py:class:`scipy.interpolate.interp1d`, unless conditions permit the use of :py:class:`numpy.interp`
2240
+ (as in the case of `method='linear'` for 1D data).
2241
+ - If `method='polynomial'`, the `order` keyword argument must also be provided. In this case,
2242
+ :py:class:`scipy.interpolate.interp1d` is called with `kind=order`.
2243
2243
2244
2244
3. **Special interpolants for interpolation along one dimension of N-dimensional data (N ≥ 1)**
2245
- - Depending on the `method`, the following interpolants from :py:class:`scipy.interpolate` are used:
2246
- - `"pchip"`: :py:class:`scipy.interpolate.PchipInterpolator`
2247
- - `"barycentric"`: :py:class:`scipy.interpolate.BarycentricInterpolator`
2248
- - `"krogh"`: :py:class:`scipy.interpolate.KroghInterpolator`
2249
- - `"akima"` or `"makima"`: :py:class:`scipy.interpolate.Akima1dInterpolator`
2250
- (`makima` is handled by passing `makima` to `method`).
2245
+ - Depending on the `method`, the following interpolants from :py:class:`scipy.interpolate` are used:
2246
+ - `"pchip"`: :py:class:`scipy.interpolate.PchipInterpolator`
2247
+ - `"barycentric"`: :py:class:`scipy.interpolate.BarycentricInterpolator`
2248
+ - `"krogh"`: :py:class:`scipy.interpolate.KroghInterpolator`
2249
+ - `"akima"` or `"makima"`: :py:class:`scipy.interpolate.Akima1dInterpolator`
2250
+ (`makima` is handled by passing `makima` to `method`).
2251
2251
2252
2252
4. **Interpolation along multiple dimensions of multi-dimensional data**
2253
- - Uses :py:func:`scipy.interpolate.interpn` for methods {"linear", "nearest", "slinear",
2254
- "cubic", "quintic", "pchip"}.
2253
+ - Uses :py:func:`scipy.interpolate.interpn` for methods {"linear", "nearest", "slinear",
2254
+ "cubic", "quintic", "pchip"}.
2255
2255
2256
2256
Out-of-range values are filled with NaN, unless specified otherwise via `kwargs` to the numpy/scipy interpolant.
2257
2257
0 commit comments