Class RandomMatrixGenerator
- java.lang.Object
- 
- org.apache.sysds.runtime.matrix.data.RandomMatrixGenerator
 
- 
 public class RandomMatrixGenerator extends Object 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classRandomMatrixGenerator.PDFTypes of Probability density functions
 - 
Constructor SummaryConstructors 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 SummaryAll 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- 
RandomMatrixGeneratorpublic RandomMatrixGenerator() 
 - 
RandomMatrixGeneratorpublic RandomMatrixGenerator(RandomMatrixGenerator.PDF pdf, int r, int c, int blen, double sp) Instantiates a Random number generator- Parameters:
- pdf- probability density function
- r- number of rows
- c- number of columns
- blen- rows/cols per block
- sp- sparsity (0 = completely sparse, 1 = completely dense)
 
 - 
RandomMatrixGeneratorpublic RandomMatrixGenerator(String pdfStr, int r, int c, int blen, double sp, double min, double max) Instantiates a Random number generator- Parameters:
- pdfStr- probability density function
- r- number of rows
- c- number of columns
- blen- rows/cols per block
- sp- sparsity (0 = completely sparse, 1 = completely dense)
- min- minimum of range of random numbers
- max- maximum of range of random numbers
 
 - 
RandomMatrixGeneratorpublic 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 function
- r- number of rows
- c- number of columns
- blen- rows/cols per block
- sp- sparsity (0 = completely sparse, 1 = completely dense)
- min- minimum of range of random numbers
- max- maximum of range of random numbers
 
 - 
RandomMatrixGeneratorpublic 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 function
- r- number of rows
- c- number of columns
- blen- rows/cols per block
- sp- sparsity (0 = completely sparse, 1 = completely dense)
- min- minimum of range of random numbers
- max- maximum of range of random numbers
- mean- the poisson mean
 
 
- 
 - 
Method Detail- 
isFullyDensepublic boolean isFullyDense() 
 - 
initpublic 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 function
- r- number of rows
- c- number of columns
- blen- rows/cols per block
- sp- sparsity (0 = completely sparse, 1 = completely dense)
- min- minimum of range of random numbers
- max- maximum of range of random numbers
 
 - 
initpublic 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 function
- r- number of rows
- c- number of columns
- blen- rows/cols per block
- sp- sparsity (0 = completely sparse, 1 = completely dense)
- min- minimum of range of random numbers
- max- maximum of range of random numbers
- mean- the poisson mean
 
 
- 
 
-