| |||||||||
In the mathematical subfield of numerical analysis a spline is a special curve defined piecewise by polynomials. The term spline comes from the flexible spline devices used by shipbuilders and draftsmen to draw smooth shapes.
In interpolating problems, spline interpolation is often preferred to polynomial interpolation because it yields similar results even when using low degree polynomials, thus avoiding Runge's phenomenon.
In curve fitting splines are used to approximate complex shapes. The simplicity of representation and the ease with which a complex spline's shape may be computed make splines popular representations for curves in computer science, predominantly in computer graphics.
| Contents |
Given a k points ti called knots in an interval [a,b] with
is called a spline of degree n if
and restricted to each subinterval
In other words on each subinterval or knot span
S is identical to a polynomial of degree n.
S(ti) is called knot value and (ti, S(ti)) is called internal control point. (t0,...,tk-1) is called the knot vector. If the knots are equidistantly distributed in the Interval [a,b] we say the spline is uniform otherwise we say it is non-uniform.
The most simple spline has degree 1. It is also called linear spline and is just a polygon.
For a given knot vector the splines of degree n form a vector space. A basis for this vector space are the basis B-splines of degree n
Before computers were used numerical calculations were done by hand. Although piecewise defined functions like the signum function or step function were used, polynomials were generally preferred because they were easier to work with. With the advent of computers splines have gained importance. They were first used as a replacment for polynomials in interpolation, then as a tool to construct smooth and flexible shapes in computer graphics.