Given n observations, interpolation refers to techniques that construct a smooth function passing through the observations so that values at intermediate points can be estimated. A complementary group of techniques is Fitting.
This is article is based on the original note on interpolation and numerical differentiation. Hermite and piecewise interpolation are also covered in the note, but omited here due to lack of application.
Splines are piecewise k-th order polynomials with (k-1)-th continuous derivative at knots. Knots are points where constraints and continuous conditions are held. The order of a spline is the highest order of the polynomials.
The technique and terminology are directly inspired by the practice of splines in engineering design, esp. shipbuilding.
Spline interpolation does not have strong oscillation observed in high order polynomial interpolation, aka Runge's phenomenon.
Smoothing spline treats the observations as noisy.
Cubic spline is a piecewise-cubic, twice continuously differentiable function. It is sometimes referred to as cubic Hermite spline, where cubic Hermite basis functions are used. For n observations, n-1 cubic polynomials are needed, with 4*(n-1) degrees of freedom.
Constraints:
Hermite basis functions:
Given function and tangent values at the endpoints, the Hermite interpolation polynomial on the unit interval is their linear combination with the corresponding Hermite basis functions.
\[ H(t) = h_{00}(t) p_0 + h_{10}(t) m_0 + h_{01}(t) p_1 + h_{11}(t) m_1 \]
For an arbitrary interval \( (x_i, x_{i+1}) \), simply substitute \( t = (x - x_i) / (x_{i+1} - x_i) \).
Solution process:
B-spline, or basis spline
Theorem: Every spline function of a given degree, smoothness, and domain partition, can be uniquely represented as a linear combination of B-splines of that same degree and smoothness, and over that same partition.