Lagrange Interpolation
Lagrange interpolation6 gives a way of fitting a polynomial through
at set of points. The basic polynomial is
P(x)=j=1∑nPj(x) where
Pj(x)=yjk=1,k=j∏nxj−xkx−xk In order to generate a curve in space it is convenient to consider this
as a four dimensional problem with parameter t as the independent
variable. This ensures that t is monotonic avoid singularities. The
resulting modified equations are
P(t)=j=1∑nPj(t) where
Pj(t)=xjk=1,k=j∏ntj−tkt−tk For convenience the t values are assumed to be in the range [0:1].
6 Archer, Branden and Weisstein, Eric W. "Lagrange Interpolating Polynomial." From MathWorld--A Wolfram Web Resource.