Univariate interpolation
In the next section, we will look at how to solve univariate interpolation.
Getting ready
We will need to follow some instructions and install the prerequisites.
How to do it…
The following table summarizes the different univariate interpolation modes coded in SciPy, together with the processes that we may use to resolve them:
Object-oriented implementation | Procedural implementation | Special parameters and functions |
Nearest-neighbors |
| |
Lagrange polynomial |
|
|
Hermite polynomial |
|
|
Piecewise polynomial |
|
|
Piecewise linear |
| |
Generic spline interpolation |
|
|
Zero-order spline |
| |
Linear spline |
| |
Quadratic spline |
| |
Cubic spline |
| |
PCHIP |
|
|