L8 Interpolation Inverse Spline Methods
L8 Interpolation Inverse Spline Methods
Interpolation:
• Inverse Interpolation Method
• Spline Interpolation
Inverse Interpolation
• So far, given a set of values of x and y, we have
been finding the values of y corresponding to
a certain value of x.
• On the other hand, the process of estimating
the value of x for a value of y (which is not in
the table) is called inverse interpolation.
n
f n ( x ) Li ( x ) f ( xi )
i 0
n x xj
Li ( x )
j 0 xi x j
j i
x x1 x x0
f1 ( x) f ( x0 ) f ( x1 )
x0 x1 x1 x0
f 2 ( x)
x x1 x x2
f ( x0 )
x x0 x x2
f ( x1 )
x0 x1 x0 x 2 x1 x0 x1 x 2
x x0 x x1
f ( x2 )
x2 x0 x2 x1
Inverse Interpolation
Given (x0, f(x0)), (x1, f(x1)), (x2, f(x2)), …, (xn, f(xn))
and a function value f(xk), how do you determine (xk) ?
2. Plug in the value of f(xk) in the above equation and find one of the real
roots of the resultant equation using a root finding method:
2 n
a0 a1 x a2 x an x f ( xk ) 0
Inverse interpolation
Lagrange Inverse Interpolation Method
• This procedure is similar to Lagrange Interpolation
formula, the only difference being that x is assumed
to be expressible as a polynomial in y.
• Lagrange formula is merely a relation between two
variables either of which may be taken as the
independent variable.
x=
+
Answer: 3.55
SPLINE
In computer graphics, a spline is a curve that connects two or more
specific points, or that is defined by two or more points. The term
can also refer to the mathematical equation that defines such a
curve.
EXAMPLE:
spline fits for a set of 4 points:
(a) linear
(b) quadratic
(c) cubic splines
• linear spline
is superior to higher-order interpolating polynomials (parts a, b, and c)
Spline Interpolation
Quadratic Spline example
Quadratic Splines - Equations
Given (n+1) points, there are 3(n) coefficients to find and hence, need to
determine 3n equations to solve:
Each polynomial must pass through the endpoints of the interval that they
are associated with. And these conditions result in 2n equations:
ai xi2 bi xi ci f ( xi ) i 1,2, , n
ai xi2 1 bi xi 1 ci f ( xi 1 ) i 1,2, , n
Methods of spline
• Catmul-Rom Splines
Methods of spline
• Cardinal Splines