GRID
Random Points on a Uniform Grid


GRID is a MATLAB library which randomly selects N distinct points on a uniform grid in the unit hypercube in M-dimensional space.

Note that, unless N is an Mth power of an integer, the program must generate a regular grid with too many points, and then omit some. Choosing which points to omit is done with a random number generator, whose actions are controlled by SEED.

The actual placement of the grid within the unit hypercube leaves some options for the use. It is easiest to describe the options in the 1 dimensional case, and in terms of where the first and last grid point are. Assuming we have N evenly spaced points to place between 0 and 1, the centering options are

Licensing:

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

Languages:

GRID is available in a C++ version and a FORTRAN90 version and a MATLAB version.

Related Data and Programs:

BALL_GRID, a MATLAB library which computes grid points that lie inside a ball.

CIRCLE_GRID, a MATLAB library which computes grid points that lie inside a circle.

ELLIPSE_GRID, a MATLAB library which computes grid points that lie inside an ellipse.

ELLIPSOID_GRID, a MATLAB library which computes grid points that lie inside a 3D ellipsoid.

GRID_DATASET, a MATLAB program which allows the user to specify a grid dataset.

HALTON, a MATLAB library which computes elements of a Halton quasirandom sequence.

HAMMERSLEY, a MATLAB library which computes elements of a Hammersley quasirandom sequence.

HEX_GRID, a MATLAB library which computes elements of a hexagonal grid dataset.

IHS, a MATLAB library which computes elements of an improved distributed Latin hypercube dataset.

LATIN_CENTER, a MATLAB library which computes elements of a Latin Hypercube dataset, choosing center points.

LATIN_EDGE, a MATLAB library which computes elements of a Latin Hypercube dataset, choosing edge points.

LATIN_RANDOM, a MATLAB library which computes elements of a Latin Hypercube dataset, choosing points at random.

LATTICE_RULE, a MATLAB library which approximates multidimensional integrals using lattice rules.

LCVT, a MATLAB library which computes a latinized Centroidal Voronoi Tessellation.

NIEDERREITER2, a MATLAB library which computes elements of a Niederreiter quasirandom sequence with base 2.

SOBOL, a MATLAB library which computes elements of a Sobol quasirandom sequence.

TETRAHEDRON_GRID, a MATLAB library which computes a tetrahedral grid of points.

UNIFORM, a MATLAB library which computes elements of a uniform pseudorandom sequence.

VAN_DER_CORPUT, a MATLAB library which computes elements of a van der Corput quasirandom sequence.

Source Code:

Examples and Tests:

You can go up one level to the MATLAB source codes.


Last revised on 13 December 2009.