CREATE_RANDOM_WEIBULL_MATRIX

This procedure creates a new matrix filled with pseudo-random variables following Weibull distribution using the specified parameters Alpha, Beta and shift. The Generation technique is based on the CDF inversion according to following equation: x = Beta * POWER( (-ln(u)), (1/Alfa)) + shift where u is a pseudo-random variable uniformly distributed over the interval (0, 1).

Usage

The CREATE_RANDOM_WEIBULL_MATRIX stored procedure has the following syntax:
CREATE_RANDOM_WEIBULL_MATRIX(matrixOut,numberOfRows,numberOfCols,alpha,shift,beta)
Paramters
matrixOut
The name of the matrix to be generated.
Type: NVARCHAR(ANY)
numberOfRows
The number of matrix rows.
Type: INT4
numberOfCols
The number of matrix columns.
Type: INT4
alpha
The value used for Alpha.
Type: DOUBLE
shift
The value used for shift.
Type: DOUBLE
beta
The value used for Beta.
Type: DOUBLE
Returns
BOOLEAN TRUE if successful.

Details

This procedure uses the MKL library.

Examples

CALL nzm..CREATE_RANDOM_WEIBULL_MATRIX('A', 5, 10, 0.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_WEIBULL_MATRIX
------------------------------
 t
(1 row)

 GET_NUM_COLS
--------------
 10
(1row)

 GET_NUM_ROWS
--------------
 5
(1 row)

 ANY_NONZERO
-------------
 1
(1 row)

 DELETE_MATRIX
---------------
 t
(1 row)