In the mathematical field of numerical analysis, discrete spline interpolation is a form of interpolation where the interpolant is a special type of piecewise polynomial called a discrete spline. A discrete spline is a piecewise polynomial such that its central differences are continuous at the knots whereas a spline is a piecewise polynomial such that its derivatives are continuous at the knots. Discrete cubic splines are discrete splines where the central differences of orders 0, 1, and 2 are required to be continuous.[1]
Discrete splines were introduced by Mangasarin and Schumaker in 1971 as solutions of certain minimization problems involving differences.[2]
Let x1, x2, . . ., xn-1 be an increasing sequence of real numbers. Let g(x) be a piecewise polynomial defined by
g(x)= \begin{cases} g1(x)&x<x1\\ gi(x)&xi-1\lex<xifori=2,3,\ldots,n-1\\ gn(x)&x\gexn-1\end{cases}
where g1(x), . . ., gn(x) are polynomials of degree 3. Let h > 0. If
(gi+1-gi)(xi+jh)=0forj=-1,0,1andi=1,2,\ldots,n-1
then g(x) is called a discrete cubic spline.[1]
The conditions defining a discrete cubic spline are equivalent to the following:
gi+1(xi-h)=gi(xi-h)
gi+1(xi)=gi(xi)
gi+1(xi+h)=gi(xi+h)
The central differences of orders 0, 1, and 2 of a function f(x) are defined as follows:
D(0)f(x)=f(x)
D(1)f(x)=
f(x+h)-f(x-h) | |
2h |
D(2)f(x)=
f(x+h)-2f(x)+f(x-h) | |
h2 |
The conditions defining a discrete cubic spline are also equivalent to[1]
D(j)gi+1
(j) | |
(x | |
i)=D |
gi(xi)forj=0,1,2andi=1,2,\ldots,n-1.
This states that the central differences
D(j)g(x)
Let x1 = 1 and x2 = 2 so that n = 3. The following function defines a discrete cubic spline:[1]
g(x)= \begin{cases} x3&x<1\\ x3-2(x-1)((x-1)2-h2)&1\lex<2\\ x3-2(x-1)((x-1)2-h2)+(x-2)((x-2)2-h2)&x\ge2 \end{cases}
Let x0 < x1 and xn > xn-1 and f(x) be a function defined in the closed interval [''x''<sub>0</sub> - h, ''x''<sub>''n''</sub> + h]. Then there is a unique cubic discrete spline g(x) satisfying the following conditions:
g(xi)=f(xi)fori=0,1,\ldots,n.
D(1)g1(x0)=D(1)f(x0).
D(1)gn(xn)=D(1)f(xn).
This unique discrete cubic spline is the discrete spline interpolant to f(x) in the interval [''x''<sub>0</sub> - h, ''x''<sub>''n''</sub> + h]. This interpolant agrees with the values of f(x) at x0, x1, . . ., xn.