In the Mathematical subfield of Numerical Analysis a is a special Function defined Piecewise by Polynomial s.
In Interpolating problems, Spline Interpolation is often preferred to Polynomial Interpolation because it yields similar results, even when using low degree polynomials, while avoiding Runge's Phenomenon for higher degrees.
In the Computer Science subfields of Computer-aided Design and Computer Graphics the term spline more frequently refers to a piecewise parametric polynomial Curve . Splines are a popular representation of curves in these subfields
because of the simplicity of their construction, their ease and accuracy of evaluation, and their capacity to approximate complex shapes through Curve Fitting and interactive curve design.
The term spline comes from the flexible Spline devices used by shipbuilders and Draftsmen to draw smooth shapes.
The term "spline" is used to refer to a wide class of functions that
are used in applications requiring data interpolation and/or
smoothing. Splines may be used for interpolation and/or smoothing of
either one-dimensional or multi-dimensional data. Spline functions for
interpolation are normally determined as the minimizers of suitable
measures of roughness (for example integral squared curvature) subject
to the interpolation constraints. Smoothing splines may be viewed as
generalizations of interpolation splines where the functions are
determined to minimize a weighted combination of the average squared
approximation error over observed data and the roughness measure. For
a number of meaningful definitions of the roughness measure, the
spline functions are found to be finite dimensional in nature, which
is the primary reason for their utility in computations and
representation. For the rest of this section, we focus entirely on
one-dimensional, polynomial splines and use the term "spline" in this
restricted sense.
A (univariate, polynomial) spline is a Piecewise polynomial function.
In its most general form a polynomial spline
consists of polynomial pieces , where
:.
That is,
:
:
:
:
The given ''k'' points ''t''''i'' are called . The vector
is called a for the spline.
If the knots are equidistantly distributed in the interval {Link without Title} we say the spline is otherwise we say it is '''non-uniform'''.
If the polynomial pieces on the subintervals
:
all have degree at most ''n'', then the spline is said to be of (or of
''n+1'').
If in a neighborhood of , then the spline is said to be
of (at least) at . That is,
the two pieces and share common
derivative values from the derivative of order 0 (the function value)
up through the derivative of order ''r''''i''.
Or stated differently, the two adjacent polynomial pieces
connect with of (at most) ''j''''i'',
defined by .
(Expressing the connectivity as a "loss of smoothness" is reasonable, since
if ''S'' were a simple polynomial throughout a neighborhood of
''t''''i'', it would have smoothness ''C''''n''
at ''t''''i'', and you would expect to ''lose'' smoothness
in order to break a polynomial apart into pieces.)
A vector
such that the spline has smoothness at for |