CREATE_RANDOM_CAUCHY_MATRIX
This procedure creates a new matrix filled with Cauchy distributed random values using the parameters: Beta and shift. The formula is as follows: x = Beta tan (u) + shift. The u is a successive random number of a uniform distribution over the interval (-Pi/2, Pi/2).
Usage
The CREATE_RANDOM_CAUCHY_MATRIX stored procedure has the following syntax:
- CREATE_RANDOM_CAUCHY_MATRIX(matrixOut,numberOfRows,numberOfColumns,shift,beta)
- Parameters
- matrixOut
- The name of the matrix to be generated.
- numberOfRows
- The number of matrix rows.
- numberOfColumns
- The number of matrix columns.
- shift
- The value to be used for shift.
- beta
- The value to be used for Beta.
Details
This procedure uses the MKL library.
Examples
CALL nzm..CREATE_RANDOM_CAUCHY_MATRIX ('A', 3,5, 1.0, 0.1);
CALL nzm..GET_NUM_COLS('A');
CALL nzm..GET_NUM_ROWS('A');
CALL nzm..ANY_NONZERO('A');
CALL nzm..DELETE_MATRIX ('A');
CREATE_RANDOM_CAUCHY_MATRIX
-----------------------------
t
(1 row)
GET_NUM_COLS
--------------
5
(1 row)
GET_NUM_ROWS
--------------
3
(1 row)
ANY_NONZERO
-------------
1
(1 row)
DELETE_MATRIX
---------------
t
(1 row)