gen | Generate random data from uniform or normal distribution |
-U <bgn> <end> | -N <exp> <var> | distribution; either uniform distribution from bgn to end or normal distribution with expectation value exp and variance var |
-dout <dataout> | output data frame |
-s <samples> | number of samples |
[-dim <dim>] | dimension (default is 1) |
This command generates samples from the specified distribution and saves them to the namespace. Data frame dataout contains dim fields, i.e. one field for each dimension. Fields are named F0, F1, etc.
Example: Generate 200 random numbers between 3.4 and 5.7, and 400 samples from a two-dimensional normal distribution.
NDA> gen -U 3.4 5.7 -dout rands -s 200 NDA> gen -N 0 1 -dout gauss -s 400 -dim 2