NORMAL
This procedure creates a new matrix filled with normally distributed random values using drand48_r.
Usage
The NORMAL stored procedure has the following syntax:
- NORMAL(matrixOut,numberOfRows,numberOfColumns,mean,stddev)
- Parameters
- matrixOut
- The name of the matrix to be generated.
- numberOfRows
- The number of rows to be included in the created matrix.
- numberOfColumns
- The number of columns to be included in the created matrix.
- mean
- The mean, default value is 0.
- stddev
- The standard deviation; default value is 1.
Details
This procedure uses drand48_r.
Examples
CALL nzm..normal('A', 10, 10, 35.5, 48.7);
CALL nzm..list_matrices();
CALL nzm..delete_matrix('A');
NORMAL
--------
t
(1 row)
LIST_MATRICES
---------------
A
(1 row)
DELETE_MATRIX
---------------
t
(1 row)