public class RandomMatrixGenerator extends Object
| Constructor and Description |
|---|
RandomMatrixGenerator() |
RandomMatrixGenerator(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf,
int r,
int c,
int rpb,
int cpb,
double sp)
Instantiates a Random number generator
|
RandomMatrixGenerator(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf,
int r,
int c,
int rpb,
int cpb,
double sp,
double min,
double max)
Instantiates a Random number generator
|
RandomMatrixGenerator(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf,
int r,
int c,
int rpb,
int cpb,
double sp,
double min,
double max,
double mean)
Instantiates a Random number generator with a specific poisson mean
|
RandomMatrixGenerator(String pdfStr,
int r,
int c,
int rpb,
int cpb,
double sp,
double min,
double max)
Instantiates a Random number generator
|
| Modifier and Type | Method and Description |
|---|---|
void |
init(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf,
int r,
int c,
int rpb,
int cpb,
double sp,
double min,
double max)
Initializes internal data structures.
|
void |
init(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf,
int r,
int c,
int rpb,
int cpb,
double sp,
double min,
double max,
double mean)
Instantiates a Random number generator with a specific poisson mean
|
protected void |
setupValuePRNG() |
public RandomMatrixGenerator()
public RandomMatrixGenerator(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf,
int r,
int c,
int rpb,
int cpb,
double sp)
throws DMLRuntimeException
pdf - probability density functionr - number of rowsc - number of columnsrpb - rows per blockcpb - columns per blocksp - sparsity (0 = completely sparse, 1 = completely dense)DMLRuntimeException - if errorpublic RandomMatrixGenerator(String pdfStr, int r, int c, int rpb, int cpb, double sp, double min, double max) throws DMLRuntimeException
pdfStr - probability density functionr - number of rowsc - number of columnsrpb - rows per blockcpb - columns per blocksp - sparsity (0 = completely sparse, 1 = completely dense)min - minimum of range of random numbersmax - maximum of range of random numbersDMLRuntimeException - if errorpublic RandomMatrixGenerator(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf,
int r,
int c,
int rpb,
int cpb,
double sp,
double min,
double max)
throws DMLRuntimeException
pdf - probability density functionr - number of rowsc - number of columnsrpb - rows per blockcpb - columns per blocksp - sparsity (0 = completely sparse, 1 = completely dense)min - minimum of range of random numbersmax - maximum of range of random numbersDMLRuntimeException - if errorpublic RandomMatrixGenerator(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf,
int r,
int c,
int rpb,
int cpb,
double sp,
double min,
double max,
double mean)
throws DMLRuntimeException
pdf - probability density functionr - number of rowsc - number of columnsrpb - rows per blockcpb - columns per blocksp - sparsity (0 = completely sparse, 1 = completely dense)min - minimum of range of random numbersmax - maximum of range of random numbersmean - the poisson meanDMLRuntimeException - if errorpublic void init(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf,
int r,
int c,
int rpb,
int cpb,
double sp,
double min,
double max)
throws DMLRuntimeException
pdf - probability density functionr - number of rowsc - number of columnsrpb - rows per blockcpb - columns per blocksp - sparsity (0 = completely sparse, 1 = completely dense)min - minimum of range of random numbersmax - maximum of range of random numbersDMLRuntimeException - if errorpublic void init(org.apache.sysml.runtime.matrix.data.RandomMatrixGenerator.PDF pdf,
int r,
int c,
int rpb,
int cpb,
double sp,
double min,
double max,
double mean)
throws DMLRuntimeException
pdf - probability density functionr - number of rowsc - number of columnsrpb - rows per blockcpb - columns per blocksp - sparsity (0 = completely sparse, 1 = completely dense)min - minimum of range of random numbersmax - maximum of range of random numbersmean - the poisson meanDMLRuntimeException - if errorprotected void setupValuePRNG()
throws DMLRuntimeException
DMLRuntimeExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.