UNIFORM_DATASET
Generate Uniform Random Datasets {#uniform_dataset-generate-uniform-random-datasets align="center"}
UNIFORM_DATASET is a C++ program which creates a uniform random dataset and writes it to a file.
uniform_dataset m n seed
where
- m is the spatial dimension;
- n is the number of points to generate;
- seed is the initial seed value.
The data is written to the file uniform_m_n.txt.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
UNIFORM_DATASET is available in a C++ version and a FORTRAN90 version and a MATLAB version.
CVT_DATASET, a C++ program which computes a Centroidal Voronoi Tessellation and writes it to a file.
FAURE_DATASET, a C++ program which creates a Faure quasirandom dataset;
GRID_DATASET, a C++ program which creates a grid sequence and writes it to a file.
HALTON_DATASET, a C++ program which creates a Halton sequence and writes it to a file.
HAMMERSLEY_DATASET, a C++ program which creates a Hammersley sequence and writes it to a file.
HEX_GRID_DATASET, a C++ program which creates a hexagonal grid dataset and writes it to a file.
IHS_DATASET, a C++ program which creates an improved distributed Latin hypercube dataset and writes it to a file.
LATIN_CENTER_DATASET, a C++ program which creates a Latin Center Hypercube dataset;
LATIN_EDGE_DATASET, a C++ program which creates a Latin Edge Hypercube dataset;
LATIN_RANDOM_DATASET, a C++ program which creates a Latin Random Hypercube dataset;
LCVT_DATASET, a C++ program which computes a latinized Centroidal Voronoi Tessellation and writes it to a file.
NIEDERREITER2_DATASET, a C++ program which creates a Niederreiter quasirandom dataset with base 2;
NORMAL_DATASET, a C++ program which generates a dataset of multivariate normal pseudorandom values and writes them to a file.
SOBOL_DATASET, a C++ program which computes a Sobol quasirandom sequence and writes it to a file.
UNIFORM, a C++ library which computes the uniform datasets for UNIFORM_DATASET. A compiled copy of this library must be available in order to create the program.
UNIFORM, a dataset directory which contains examples of the files created by UNIFORM_DATASET.
VAN_DER_CORPUT_DATASET, a C++ program which creates a van der Corput quasirandom sequence and writes it to a file.
- Paul Bratley, Bennett Fox, Linus Schrage,
A Guide to Simulation,
Springer Verlag, pages 201-202, 1983. - Bennett Fox,
Algorithm 647: Implementation and Relative Efficiency of Quasirandom Sequence Generators,
ACM Transactions on Mathematical Software,
Volume 12, Number 4, pages 362-376, 1986. - Donald Knuth,
The Art of Computer Programming,
Volume 2: Seminumerical Algorithms,
Addison Wesley, 1969.
- uniform_dataset.cpp, the source code.
- uniform_2_25.txt, is the file created in response to the command "uniform_dataset 2 25 123456789".
- MAIN is the main program for UNIFORM_DATASET.
- GET_SEED returns a random seed for the random number generator.
- R8MAT_UNIFORM_01_NEW returns a new unit pseudorandom R8MAT.
- R8MAT_WRITE writes an R8MAT file with no header.
- TIMESTAMP prints the current YMDHMS date as a time stamp.
You can go up one level to the C++ source codes.
Last revised on 15 August 2009.