Tricubic interpolation explained

In the mathematical subfield numerical analysis, tricubic interpolation is a method for obtaining values at arbitrary points in 3D space of a function defined on a regular grid. The approach involves approximating the function locally by an expression of the form f(x,y,z)=\sum_^3 \sum_^3 \sum_^3 a_ x^i y^j z^k.

This form has 64 coefficients

aijk

; 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.[1]

In other contexts, we can obtain the 64 coefficients by considering a 3×3×3 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 cubic interpolation article indicates that the method is equivalent to a sequential application of one-dimensional cubic interpolators. Let

CINTx(a-1,a0,a1,a2)

be the value of a monovariable cubic polynomial (e.g. constrained by values,

a-1

,

a0

,

a1

,

a2

from consecutive grid points) evaluated at

x

. In many useful cases, these cubic polynomials have the form

CINTx(u-1,u0,u1,u2)=vx\left(u-1,u0,u1,u2\right)

for some vector

vx

which is a function of

x

alone. The tricubic interpolator is equivalent to:

\begins(i,j,k) & = \text (i,j,k)\\t(i,j,z) & = \mathrm_z\left(s(i,j,-1), s(i,j,0), s(i,j,1), s(i,j,2)\right) \\u(i,y,z) & = \mathrm_y\left(t(i,-1,z), t(i,0,z), t(i,1,z), t(i,2,z)\right) \\f(x,y,z) & = \mathrm_x\left(u(-1,y,z), u(0,y,z), u(1,y,z), u(2,y,z)\right)\endwhere

i,j,k\in\{-1,0,1,2\}

and

x,y,z\in[0,1]

.

At first glance, it might seem more convenient to use the 21 calls to

CINT

described above instead of the

{64 x 64}

matrix described in Lekien and Marsden. However, a proper implementation using a sparse format for the matrix (that is fairly sparse) makes the latter more efficient. This aspect is even much more pronounced when interpolation is needed at several locations inside the same cube. In this case, the

{64 x 64}

matrix is used once to compute the interpolation coefficients for the entire cube. The coefficients are then stored and used for interpolation at any location inside the cube. In comparison, sequential use of one-dimensional integrators

CINTx

performs extremely poorly for repeated interpolations because each computational step must be repeated for each new location.

See also

References

  1. Lekien . F. . Marsden . J. . 2005-05-21 . Tricubic interpolation in three dimensions . Journal of Numerical Methods in Engineering . en . 63 . 3 . 455–471 . 10.1002/nme.1296 . 0029-5981. free .

External links