The Equation for a Cubic Spline
Figure 7.7:
Cubic spline.
|
- We will create a succession of cubic splines over successive intervals of the data (See Fig. 7.7).
- Each spline must join with its neighbouring cubic polynomials at the knots where they join with the same slope and curvature.
- We write the equation for a cubic polynomial,
, in the
interval, between points
(solid line).
- It has this equation:
- The dashed curves are other cubic spline polynomials.
- Thus, the cubic spline function is of the form
- and meets these conditions:
 |
(7.1) |
 |
(7.2) |
 |
(7.3) |
 |
(7.4) |
- Equations say that the cubic spline fits to each of the points Eq. 7.1, is continuous Eq. 7.2, and is continuous in slope and curvature Eq. 7.3 and Eq. 7.4, throughout the region spanned by the points.