liveBook · Manning

Interpolant

As explained in Geometry for Programmers

An interpolant is a function or mathematical expression that matches specified data values at selected inputs.

An interpolant is a function whose graph passes through every specified data point. Interpolation is therefore the exact-fitting special case of approximation: with N data points, a polynomial interpolant normally has degree N−1. section 6.3.6 section 6.7

For polynomial data, the Vandermonde matrix is a practical way to compute the coefficients. Least squares can also produce an interpolating polynomial, while Lagrange interpolation makes the idea of basis polynomials especially visible. section 6.3.6 section 6.7

Inverse-distance interpolation

Given points (1, 3) and (3, 1), assign each value a weight inversely proportional to its distance from x, then divide the weighted sum by the sum of the weights. With power n = 1, the resulting interpolant is also linear. At x values approaching 1, such as 1.000001, it approaches 2.99999, demonstrating convergence toward the specified value. The endpoints themselves require separate handling because a weight divides by zero. section 8.3.1

Changing the inverse-distance power changes the interpolant’s shape, and using several points extends the method beyond the two-point case. No single spatial interpolation method serves every need; alternative weight functions, value functions, or more local constructions may be worth exploring. section 8.3.1 section 8.5

Figure 8.16 Inverse distance interpolation of two points with n = 1 is also linear.
08-16

Use the figure to compare the straight-line shape produced by inverse-distance interpolation with power n = 1. section 8.3.1

Figure 8.17 Here is the same interpolation with (from left to right) n = 2, n = 3, and n = 4. Raising the power of n changes the shape of the interpolant.
08-17

Use the figure to see how powers n = 2, 3, and 4 reshape the same interpolant. section 8.3.1

How Geometry for Programmers covers it

How deep it goes
Explains polynomial and inverse-distance constructions, weighting behavior, convergence, and shape changes, but stops short of a universal spatial method.
Examples
Demonstrates two-point inverse-distance interpolation, endpoint convergence, varying weight powers, and multi-point spatial surfaces.
What it assumes
Assumes familiarity with functions and data points while introducing interpolation as exact approximation.
What you can do after
Evaluate interpolants and choose among polynomial, Lagrange, Vandermonde, least-squares, and inverse-distance approaches.
How it connects
Connects approximation, polynomial interpolation, least squares, Vandermonde matrices, Lagrange interpolation, Bézier functions, and NURBS.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Geometry for Programmers. The section links point to the parts of the book it draws on.