Class RandomMatrixGenerator
- java.lang.Object
-
- org.apache.sysds.runtime.matrix.data.RandomMatrixGenerator
-
public class RandomMatrixGenerator extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRandomMatrixGenerator.PDFTypes of Probability density functions
-
Constructor Summary
Constructors Constructor Description RandomMatrixGenerator()RandomMatrixGenerator(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinit(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 meanbooleanisFullyDense()StringtoString()
-
-
-
Constructor Detail
-
RandomMatrixGenerator
public RandomMatrixGenerator()
-
RandomMatrixGenerator
public RandomMatrixGenerator(RandomMatrixGenerator.PDF pdf, int r, int c, int blen, double sp)
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 Detail
-
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
-
-