Interpolation (scipy.interpolate) — SciPy v1.16.0 Manual (original) (raw)
There are several general facilities available in SciPy for interpolation and smoothing for data in 1, 2, and higher dimensions. The choice of a specific interpolation routine depends on the data: whether it is one-dimensional, is given on a structured grid, or is unstructured. One other factor is the desired smoothness of the interpolator. In short, routines recommended for interpolation can be summarized as follows:
Smoothing and approximation of data#
Further details are given in the links below
- 1-D interpolation
- Piecewise polynomials and splines
- Smoothing splines
- Spline smoothing in 1D
* “Classic” smoothing splines and generalized cross-validation (GCV) criterion
* Smoothing splines with automatic knot selection
* Smoothing spline curves in \(d>1\)
* Batching of y arrays
* Legacy routines for spline smoothing in 1-D - 2-D smoothing splines
* Bivariate spline fitting of scattered data
* Bivariate spline fitting of data on a grid
* Bivariate spline fitting of data in spherical coordinates
- Spline smoothing in 1D
- Multivariate data interpolation on a regular grid (RegularGridInterpolator)
- Scattered data interpolation (griddata)
- Using radial basis functions for smoothing/interpolation
- Extrapolation tips and tricks
- interp2d transition guide