- Tricubic interpolation
In the
mathematical subfieldnumerical analysis , tricubic interpolation is a method for obtaining values at arbitrary points in 3D space of a function defined on aregular grid . The approach involves approximating the function locally by an expression of the form :This form has 64 coefficients ; requiring the function to have a given value or given
directional derivative at a point places one linear constraint on the 64 coefficients.The term "tricubic interpolation" is used in more than one context; some experiments measure both the value of a function and its spatial derivatives, and it is desirable to interpolate preserving the values and the measured derivatives at the grid points. Those provide 32 constraints on the coefficients, and another 32 constraints can be provided by requiring smoothness of higher derivatives; see [ [http://www.lekien.com/~francois/papers/LeMa05/LeMa05.pdf Tricubic interpolation in three dimensions ] ] for details.
In other contexts, we can obtain the 64 coefficients by considering a 3x3x3 grid of small cubes surrounding the cube inside which we evaluate the function, and fitting the function at the 64 points on the corners of this grid.
The advantage of this approach is that it can be done incrementally: define as the value of the unique cubic polynomial with evaluated at "x".
The
cubic interpolation article will remind you that for some vector which is a function of "x" alone.Now, we can proceed by setting
:
which requires 21 calls to , each of which is essentially a four-element dot-product (and sixteen of which are four-element dot-products by the same vector) rather than the multiplication of a matrix by the vector with the 64 point values which a direct solution of the linear system would entail.
References
ee also
*
Cubic interpolation
*Bicubic interpolation
*Trilinear interpolation
Wikimedia Foundation. 2010.