In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, a spline is a
function defined
piecewise by
polynomial
In mathematics, a polynomial is a Expression (mathematics), mathematical expression consisting of indeterminate (variable), indeterminates (also called variable (mathematics), variables) and coefficients, that involves only the operations of addit ...
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
Computer science is the study of computation, information, and automation. Computer science spans Theoretical computer science, theoretical disciplines (such as algorithms, theory of computation, and information theory) to Applied science, ...
subfields of
computer-aided design and
computer graphics
Computer graphics deals with generating images and art with the aid of computers. Computer graphics is a core technology in digital photography, film, video games, digital art, cell phone and computer displays, and many specialized applications. ...
, the term ''spline'' more frequently refers to a piecewise polynomial (
parametric)
curve
In mathematics, a curve (also called a curved line in older texts) is an object similar to a line, but that does not have to be straight.
Intuitively, a curve may be thought of as the trace left by a moving point. This is the definition that ...
. Splines are popular 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.
Introduction
The term "spline" is used to refer to a wide class of functions that are used in applications requiring data interpolation and/or smoothing. The data may be either one-dimensional or multi-dimensional. 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.
History
According to Gerald Farin, B-splines were explored as early as the nineteenth century by
Nikolai Lobachevsky
Nikolai Ivanovich Lobachevsky (; , ; – ) was a Russian mathematician and geometer, known primarily for his work on hyperbolic geometry, otherwise known as Lobachevskian geometry, and also for his fundamental study on Dirichlet integrals, kno ...
at
Kazan University in Russia.
[Farin, G. E. (2002). ''Curves and surfaces for CAGD: a practical guide''. Morgan Kaufmann. p. 119.]
Before computers were used, numerical calculations were done by hand. Although piecewise-defined functions like the
sign function
In mathematics, the sign function or signum function (from '' signum'', Latin for "sign") is a function that has the value , or according to whether the sign of a given real number is positive or negative, or the given number is itself zer ...
or
step function were used, polynomials were generally preferred because they were easier to work with. Through the advent of computers, splines have gained importance. They were first used as a replacement for polynomials in interpolation, then as a tool to construct smooth and flexible shapes in computer graphics.
It is commonly accepted that the first mathematical reference to splines is the 1946 paper by
Schoenberg, which is probably the first place that the word "spline" is used in connection with smooth, piecewise polynomial approximation. However, the ideas have their roots in the aircraft and shipbuilding industries. In the foreword to (Bartels et al., 1987),
Robin Forrest describes "
lofting", a technique used in the British aircraft industry during
World War II
World War II or the Second World War (1 September 1939 – 2 September 1945) was a World war, global conflict between two coalitions: the Allies of World War II, Allies and the Axis powers. World War II by country, Nearly all of the wo ...
to construct templates for airplanes by passing thin wooden strips (called "
splines") through points laid out on the floor of a large design loft, a technique borrowed from ship-hull design. For years the practice of ship design had employed models to design in the small. The successful design was then plotted on graph paper and the key points of the plot were re-plotted on larger graph paper to full size. The thin wooden strips provided an interpolation of the key points into smooth curves. The strips would be held in place at discrete points (called "ducks" by Forrest; Schoenberg used "dogs" or "rats") and between these points would assume shapes of minimum strain energy. According to Forrest, one possible impetus for a mathematical model for this process was the potential loss of the critical design components for an entire aircraft should the loft be hit by an enemy bomb. This gave rise to "conic lofting", which used conic sections to model the position of the curve between the ducks. Conic lofting was replaced by what we would call splines in the early 1960s based on work by
J. C. Ferguson at
Boeing
The Boeing Company, or simply Boeing (), is an American multinational corporation that designs, manufactures, and sells airplanes, rotorcraft, rockets, satellites, and missiles worldwide. The company also provides leasing and product support s ...
and (somewhat later) by
M.A. Sabin at
British Aircraft Corporation.
The word "spline" was originally an
East Anglian dialect word.
The use of splines for modeling automobile bodies seems to have several independent beginnings. Credit is claimed on behalf of
de Casteljau at
Citroën
Citroën ()The double-dot diacritic over the 'e' is a diaeresis () indicating the two vowels are sounded separately, and not as a diphthong. is a French automobile brand. The "Automobiles Citroën" manufacturing company was founded on 4 June 19 ...
,
Pierre Bézier at
Renault
Renault S.A., commonly referred to as Groupe Renault ( , , , also known as the Renault Group in English), is a French Multinational corporation, multinational Automotive industry, automobile manufacturer established in 1899. The company curr ...
, and
Birkhoff,
Garabedian, and
de Boor at
General Motors
General Motors Company (GM) is an American Multinational corporation, multinational Automotive industry, automotive manufacturing company headquartered in Detroit, Michigan, United States. The company is most known for owning and manufacturing f ...
(see Birkhoff and de Boor, 1965), all for work occurring in the very early 1960s or late 1950s. At least one of de Casteljau's papers was published, but not widely, in 1959. De Boor's work at
General Motors
General Motors Company (GM) is an American Multinational corporation, multinational Automotive industry, automotive manufacturing company headquartered in Detroit, Michigan, United States. The company is most known for owning and manufacturing f ...
resulted in a number of papers being published in the early 1960s, including some of the fundamental work on
B-splines.
Work was also being done at Pratt & Whitney Aircraft, where two of the authors of (Ahlberg et al., 1967) — the first book-length treatment of splines — were employed, and the
David Taylor Model Basin, by Feodor Theilheimer. The work at
General Motors
General Motors Company (GM) is an American Multinational corporation, multinational Automotive industry, automotive manufacturing company headquartered in Detroit, Michigan, United States. The company is most known for owning and manufacturing f ...
is detailed nicely in (Birkhoff, 1990) and (Young, 1997). Davis (1997) summarizes some of this material.
Definition
We begin by limiting our discussion to
polynomials in one variable. In this case, a spline is a
piecewise polynomial
In mathematics, a polynomial is a Expression (mathematics), mathematical expression consisting of indeterminate (variable), indeterminates (also called variable (mathematics), variables) and coefficients, that involves only the operations of addit ...
function.
This function, call it , takes values from an interval and maps them to
the set of
real numbers
In mathematics, a real number is a number that can be used to measurement, measure a continuous variable, continuous one-dimensional quantity such as a time, duration or temperature. Here, ''continuous'' means that pairs of values can have arbi ...
,
We want to be piecewise defined. To accomplish this, let the interval be covered by ordered,
disjoint subintervals,
On each of these "pieces" of , we want to define a polynomial, call it .
On the th subinterval of , is defined by ,
The given points are called knots. The vector is called a knot vector for the spline.
If the knots are equidistantly distributed in the interval we say the spline is uniform, otherwise we say it is non-uniform.
If the polynomial pieces each have degree at most , then the spline is said to be of degree (or of order ).
If
in a neighborhood of , then the spline is said to be of
smoothness
In mathematical analysis, the smoothness of a function is a property measured by the number of continuous derivatives (''differentiability class)'' it has over its domain.
A function of class C^k is a function of smoothness at least ; t ...
(at least)
at . That is, at the two polynomial pieces and share common derivative values from the derivative of order 0 (the function value) up through the derivative of order (in other words, the two adjacent polynomial pieces connect with loss of smoothness of at most )
A vector such that the spline has smoothness
at for is called a smoothness vector for the spline.
Given a knot vector , a degree , and a smoothness vector for , one can consider the set of all splines of degree having knot vector and smoothness vector . Equipped with the operation of adding two functions (pointwise addition) and taking real multiples of functions, this set becomes a real vector space. This spline space is commonly denoted by
In the mathematical study of polynomial splines the question of what happens when two knots, say and , are taken to approach one another and become coincident has an easy answer. The polynomial piece disappears, and the pieces and join with the sum of the smoothness losses for and .
That is,
where .
This leads to a more general understanding of a knot vector. The continuity loss at any point can be considered to be the result of multiple knots located at that point, and a spline type can be completely characterized by its degree and its extended knot vector
where is repeated times
for .
A
parametric curve on the interval