Class RandomMatrixGenerator
java.lang.Object
org.apache.sysds.runtime.matrix.data.RandomMatrixGenerator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTypes of Probability density functions -
Constructor Summary
ConstructorsConstructorDescriptionRandomMatrixGenerator(String pdfStr, int r, int c, int blen, double sp, double min, double max) Instantiates a Random number generatorRandomMatrixGenerator(RandomMatrixGenerator.PDF pdf, int r, int c, int blen, double sp) Instantiates a Random number generatorRandomMatrixGenerator(RandomMatrixGenerator.PDF pdf, int r, int c, int blen, double sp, double min, double max) Instantiates a Random number generatorRandomMatrixGenerator(RandomMatrixGenerator.PDF pdf, int r, int c, int blen, double sp, double min, double max, double mean) Instantiates a Random number generator with a specific poisson mean -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(RandomMatrixGenerator.PDF pdf, int r, int c, int blen, double sp, double min, double max) Initializes internal data structures.voidinit(RandomMatrixGenerator.PDF pdf, int r, int c, int blen, double sp, double min, double max, double mean) Instantiates a Random number generator with a specific poisson meanbooleantoString()
-
Constructor Details
-
RandomMatrixGenerator
public RandomMatrixGenerator() -
RandomMatrixGenerator
Instantiates a Random number generator- Parameters:
pdf- probability density functionr- number of rowsc- number of columnsblen- rows/cols per blocksp- sparsity (0 = completely sparse, 1 = completely dense)
-
RandomMatrixGenerator
public RandomMatrixGenerator(String pdfStr, int r, int c, int blen, double sp, double min, double max) Instantiates a Random number generator- Parameters:
pdfStr- probability density functionr- number of rowsc- number of columnsblen- rows/cols per blocksp- sparsity (0 = completely sparse, 1 = completely dense)min- minimum of range of random numbersmax- maximum of range of random numbers
-
RandomMatrixGenerator
public RandomMatrixGenerator(RandomMatrixGenerator.PDF pdf, int r, int c, int blen, double sp, double min, double max) Instantiates a Random number generator- Parameters:
pdf- probability density functionr- number of rowsc- number of columnsblen- rows/cols per blocksp- sparsity (0 = completely sparse, 1 = completely dense)min- minimum of range of random numbersmax- maximum of range of random numbers
-
RandomMatrixGenerator
public RandomMatrixGenerator(RandomMatrixGenerator.PDF pdf, int r, int c, int blen, double sp, double min, double max, double mean) Instantiates a Random number generator with a specific poisson mean- Parameters:
pdf- probability density functionr- number of rowsc- number of columnsblen- rows/cols per blocksp- sparsity (0 = completely sparse, 1 = completely dense)min- minimum of range of random numbersmax- maximum of range of random numbersmean- the poisson mean
-
-
Method Details
-
isFullyDense
public boolean isFullyDense() -
init
public void init(RandomMatrixGenerator.PDF pdf, int r, int c, int blen, double sp, double min, double max) Initializes internal data structures. Called by Constructor- Parameters:
pdf- probability density functionr- number of rowsc- number of columnsblen- rows/cols per blocksp- sparsity (0 = completely sparse, 1 = completely dense)min- minimum of range of random numbersmax- maximum of range of random numbers
-
init
public void init(RandomMatrixGenerator.PDF pdf, int r, int c, int blen, double sp, double min, double max, double mean) Instantiates a Random number generator with a specific poisson mean- Parameters:
pdf- probability density functionr- number of rowsc- number of columnsblen- rows/cols per blocksp- sparsity (0 = completely sparse, 1 = completely dense)min- minimum of range of random numbersmax- maximum of range of random numbersmean- the poisson mean
-
toString
-