public class DblRandom
extends java.lang.Object
Constructor and Description |
---|
DblRandom()
Construct a random generator.
|
DblRandom(long seed)
Construct a random generator.
|
Modifier and Type | Method and Description |
---|---|
DblMatrix |
normRand(double Mean,
double Variance,
int[] Size)
Create a matrix whose entries are generated from a Normal(Mean,Variance)
distribution.
|
DblMatrix |
normRand(int[] Size)
Create a matrix whose entries are generated from a Normal(0,1)
distribution.
|
void |
setSeed(long seed)
Set the seed of the random number generator.
|
DblMatrix |
unifRand(double A,
double B,
int[] Size)
Create a matrix whose entries are generated from a Uniform (double A,double B)
distribution.
|
DblMatrix |
unifRand(int[] Size)
Create a matrix whose entries are generated from a Uniform (0,1)
distribution.
|
public DblRandom()
public DblRandom(long seed)
public void setSeed(long seed)
public DblMatrix unifRand(int[] Size)
public DblMatrix unifRand(double A, double B, int[] Size)
public DblMatrix normRand(int[] Size)
public DblMatrix normRand(double Mean, double Variance, int[] Size)
Copyright © 2011, 2013. Daniel P. Dougherty