uniform_dataset 26-Feb-2005 12:02:14 UNIFORM_DATASET (MATLAB version) Generate a uniform pseudorandom dataset. This program is meant to be used interactively. It is also possible to prepare a simple input file beforehand and use it in batch mode. The program requests input values from the user: * NDIM, the spatial dimension, * N, the number of points to generate, * SEED, a seed for the random number generator. The program generates the data, writes it to the file uniform_NDIM_N.txt where "NDIM" and "N" are the numeric values specified by the user, and then asks the user for more input. To indicate that no further computations are desired, it is enough to input a nonsensical value, such as -1. * * * Ready to generate a new dataset: * * NDIM is the spatial dimension. (Try '2' if you have no preference.) Any value less than 1 terminates execution. Enter NDIM: 2 User input NDIM = 2 N is the number of points. (Try '25' if you have no preference.) Any value less than 1 terminates execution. Enter N: 10 User input N = 10 SEED is a seed for the random number generator. (Try 123456789 if you have no preference.) (A value of 0 or less terminates execution.) Enter SEED: 123456789 SEED = 123456789 The data was written to the file "uniform_2_10.txt". * * * Ready to generate a new dataset: * * NDIM is the spatial dimension. (Try '2' if you have no preference.) Any value less than 1 terminates execution. Enter NDIM: 3 User input NDIM = 3 N is the number of points. (Try '25' if you have no preference.) Any value less than 1 terminates execution. Enter N: 100 User input N = 100 SEED is a seed for the random number generator. (Try 123456789 if you have no preference.) (A value of 0 or less terminates execution.) Enter SEED: 123456789 SEED = 123456789 The data was written to the file "uniform_3_100.txt". * * * Ready to generate a new dataset: * * NDIM is the spatial dimension. (Try '2' if you have no preference.) Any value less than 1 terminates execution. Enter NDIM: 7 User input NDIM = 7 N is the number of points. (Try '25' if you have no preference.) Any value less than 1 terminates execution. Enter N: 1000 User input N = 1000 SEED is a seed for the random number generator. (Try 123456789 if you have no preference.) (A value of 0 or less terminates execution.) Enter SEED: 123456789 SEED = 123456789 The data was written to the file "uniform_7_1000.txt". * * * Ready to generate a new dataset: * * NDIM is the spatial dimension. (Try '2' if you have no preference.) Any value less than 1 terminates execution. Enter NDIM: -1 User input NDIM = -1 UNIFORM_DATASET The input value of NDIM = -1 is interpreted as a request for termination. Normal end of execution. 26-Feb-2005 12:02:36