SPARSE_GRID_NCC - Sparse Grid Files
Newton Cotes Closed


SPARSE_GRID_NCC is a dataset directory which contains some examples of sparse grids, using the idea of a level to control the number of points, and assigning point locations using the Newton Cotes Closed rule.

The file has a simple structure. There are a few initial comment lines, which begin with the "#" character. These can be removed if they are inconvenient. There then follow the coordinates of the points, with each point on a single line, and the coordinates of a point separated by spaces.

The points are ordered to respect the natural nesting of the sparse grids. That is, the file of level 3 points begins by listing the points in the level 2 grid.

To make full use of such a sparse grid, it is also necessary to compute the associated interpolation weights.

Example:

Here is the text of a file storing a Newton Cotes Closed rule of level 2.


      0.500000      0.500000
      0.000000      0.500000
      1.000000      0.500000
      0.500000      0.000000
      0.500000      1.000000
      0.250000      0.500000
      0.750000      0.500000
      0.000000      0.000000
      0.000000      1.000000
      1.000000      0.000000
      1.000000      1.000000
      0.500000      0.250000
      0.500000      0.750000
      

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Related Data and Programs:

SMOLPACK, a C library which implements Novak and Ritter's method for estimating the integral of a function over a multidimensional hypercube using sparse grids.

SPINTERP, a MATLAB library which uses a sparse grid to perform multilinear hierarchical interpolation, by Andreas Klimke

Sample Files:

Some grids in 2D:

SPARSE_GRID_DISPLAY can be used to display images of two dimensional grids, which can be saved in the PNG format:

Some grids in 3D:

SPARSE_GRID_DISPLAY can be used to display images of 3D grids, which can be saved in the PNG format:

Newton Cotes Closed Sparse Quadrature Rules in 6D, defined on the [-1,1] hypercube:

Newton Cotes Closed Sparse Quadrature Rules in 10D, defined on the [-1,1] hypercube:

You can go up one level to the DATASETS page.


Last revised on 01 August 2007.