Sparse Grid Interpolation Toolbox Previous pageNext page

Piecewise linear basis functions

Piecewise linear basis functions provide a good compromise between accuracy and computational cost due to their bounded support. The Sparse Grid Interpolation package includes three different grid types that work with piecewise multilinear basis functions:

For a detailed description of the piecewise multilinear basis functions implemented here, please see [2] or [3, ch. 3], and the references stated therein.

Accuracy of piecewise multilinear interpolation

We now take a brief look at the approximation quality. An a priori error estimate can be obtained for a d-variate function f if continuous mixed derivatives

with

exist. According to [4] or [5], the order of the interpolation error in the maximum norm is then given by

where Aq,d(f) denotes the sparse grid interpolant of f, and N denotes the number of grid points of the sparse grids of type CC or M (the NB grid type has not yet been analyzed, but shows the same order of convergence in numerical tests). Note that the number of grid points N of Aq,d(f) can be computed by spdim(q-d,d). Piecewise multilinear approximation on a full grid with N* grid points is much less efficient, i.e. O(N*-2/d).

Number of grid points

The following table shows the number of grid points of the non-adaptive sparse grid interpolant depending on the interpolation depth n.

n d=2 d=4 d=8
 MNBCCMNBCCMNBCC
09118111656111
1215529799415531717
249171394549411.9e5161145
3113492927692091377.7e51121849
42571296576817694012.8e664013937
557732114520481256111059.3e63174515713
6128176932152993793729293.0e714156956737
7281717937051.3e52329775379.1e75.8e51.9e5

The following graph illustrates the sparse grids of level 0 and level 2 of the three respective grids in two dimensions.

Which piecewise linear interpolation scheme works best?

Although the performance of the three grid types is rather similar for lower-dimensional problems, there are two important points to be mentioned: Therefore, for most practical applications, we recommend using the Clenshaw-Curtis grid. Occasionally, the other grid types may perform better by a small factor, as numerical experiments show (try running the demo spcompare from the command line or from the Sparse Grid Interpolation demo page).