UNIFORM_DATASET
Generate Uniform Random Datasets
UNIFORM_DATASET
is a FORTRAN90 program which
creates a uniform random dataset and writes it to a file.
The program allows the user to choose:
-
M, the spatial dimension;
-
N, the number of points to generate;
-
SEED, the initial seed value.
Once these parameters are set, the program generates the data,
and writes it to a file. The user may then specify another
set of data, or terminate the program.
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:
TABLE
is a file format which
is used for the output files created by
UNIFORM_DATASET.
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
is a FORTRAN90 library which
computes uniformly distributed pseudorandom values.
UNIFORM
is a dataset directory which
contains sample datasets
created by UNIFORM_DATASET.
UNIFORM_DATASET is available in
a C++ version and
a FORTRAN90 version and
a MATLAB version.
Reference:
-
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.
Source Code:
List of Routines:
-
MAIN is the main program for UNIFORM_DATASET.
-
GET_SEED returns a seed for the random number generator.
-
GET_UNIT returns a free FORTRAN unit number.
-
R8MAT_UNIFORM_01 returns a unit pseudorandom R8MAT.
-
R8MAT_WRITE writes an R8MAT file.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
You can go up one level to
the FORTRAN90 source codes.
Last revised on 15 August 2009.