GRID_DATASET
Generate Grid Datasets


GRID_DATASET is a FORTRAN90 program which creates a grid dataset.

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

Usage:

grid_dataset m n seed center
where The data is written to the file grid_m_n_center.txt.

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:

FAURE_DATASET, a FORTRAN90 program which creates a Faure quasirandom dataset;

GRID is a FORTRAN90 library which can define a grid dataset. GRID_DATASET needs a compiled copy of that library in order to build the program.

GRID is a dataset directory which contains a number of sample grid datasets.

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

NIEDERREITER2_DATASET, a FORTRAN90 program which creates a Niederreiter quasirandom dataset with base 2;

NORMAL_DATASET is a FORTRAN90 program which generates a dataset of multivariate normal pseudorandom values and writes them to a file.

SOBOL_DATASET is a FORTRAN90 program which computes a Sobol quasirandom sequence and writes it to a file.

TABLE_DISCREPANCY is a C++ program which can read a TABLE file of points (presumed to lie in the unit hypercube) and compute bounds on the star discrepancy, a measure of dispersion.

UNIFORM_DATASET is a FORTRAN90 program which generates a dataset of multivariate uniform pseudorandom values and writes them to a file.

VAN_DER_CORPUT_DATASET is a FORTRAN90 program which creates a van der Corput quasirandom sequence and writes it to a file.

Source Code:

List of Routines:

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


Last revised on 30 August 2005.