De Boor's algorithm: Difference between revisions

Content deleted Content added
m added category Interpolation
Line 3:
== Introduction ==
 
The general setting is as follows. We would like to construct a curve passingwhose throughshape is described by a sequence of ''p'' points <math>\vec{d}_0, \vec{d}_1, \dots, \vec{d}_{p-1}</math>, which palys the role of a ''control polygon''. The curve can be described as a function <math> \vec{s}(x)</math> of one parameter ''x''. To pass through the sequence of points, the curve must satisfy <math>\vec{s}(u_0)=\vec{d}_0, \dots,
\vec{s}(u_{p-1})=\vec{d}_{p-1}</math>. But this is not quite the case: in general we are satisfied that the curve "approximate" the control polygon. We assume that ''u<sub>0</sub>, ..., u<sub>p-1</sub>'' are given to us along with <math>\vec{d}_0, \vec{d}_1, \dots, \vec{d}_{p-1}</math>. This problem is called [[interpolation]].
 
One approach to solving this problem is by [[spline (mathematics)|spline]]s. A spline is a curve that is piecewise ''n<sup>th</sup>'' degree polynomial. This means that, on any interval ''<nowiki>[</nowiki>u<sub>i</sub>, u<sub>i+1</sub>)'', the curve must be equal to a polynomial of degree at most ''n''. It may be equal to a different polynomials on different intervals. The polynomials must be ''synchronized'': when the polynomials from intervals ''<nowiki>[</nowiki>u<sub>i-1</sub>, u<sub>i</sub>)'' and ''<nowiki>[</nowiki>u<sub>i</sub>, u<sub>i+1</sub>)'' meet at the point ''u<sub>i</sub>'', they must have the same value at this point and their derivatives must be equal (to ensure that the curve is smooth).