Science Fair Projects Ideas - Trilinear interpolation

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

Trilinear interpolation

Trilinear interpolation is the process of taking a three-dimensional set of numbers and interpolating the values linearly, finding a point using a weighted average of eight values.

Contents

Overview

The idea behind three-dimensional interpolation is that having some periodic volume of discrete data you can predict the value of a non-integer x,y,z within the plane. This is done using data for integer coordinate positions in the plane and using this, the aim is to try to predict a value for these non-integer x,y,z positions.

Differences from linear interpolation and bilinear interpolation

  • Trilinear interpolation works over a volume of numbers rather than
    • Linear which works over a line of values
    • Bilinear which works over a plane of values
  • Trilinear interpolation works with eight values (these are the integer coordinate positions surrounding the point)

Example

In order to trilinearly interpolate we need to look at the eight values surrounding the value we want. Let

xf,yf,zf

be the fractional parts of

x,y,z,

that is:

x_f = x - \lfloor x \rfloor
y_f = y - \lfloor y \rfloor
z_f = z - \lfloor z \rfloor

First we interpolate along z, giving:

i_1 = v[\lfloor x \rfloor,\lfloor y \rfloor, \lfloor z \rfloor] \times (1 - z_f) + v[\lfloor x \rfloor, \lfloor y \rfloor, \lceil z \rceil] \times z_f
i_2 = v[\lfloor x \rfloor,\lceil y \rceil, \lfloor z \rfloor] \times (1 - z_f) + v[\lfloor x \rfloor, \lceil y \rceil, \lceil z \rceil] \times z_f
j_1 = v[\lceil x \rceil,\lfloor y \rfloor, \lfloor z \rfloor] \times (1 - z_f) + v[\lceil x \rceil, \lfloor y \rfloor, \lceil z \rceil] \times z_f
j_2 = v[\lceil x \rceil,\lceil y \rceil, \lfloor z \rfloor] \times (1 - z_f) + v[\lceil x \rceil, \lceil y \rceil, \lceil z \rceil] \times z_f.

Then we interpolate these values (along y), giving:

w1 = i1(1 - yf) + i2yf
w2 = j1(1 - yf) + j2yf

Finally we interpolate these value along x:

IV = w1(1 - xf) + w2xf.

This gives us a predicted value for the point.

Note that the result of trilinear interpolation is independent of the order of interpolation, that is, performing the linear interpolations in the other order, along x, along y, then along z horizontally, would also produce an equivalent expression for the predicted value.

See also

12-03-2008 10:22:39
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice