|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--drasys.or.prob.Distribution
An abstract class shared by all distributions.
BinomialDistribution
,
PoissonDistribution
,
EmpiricalDistribution
,
DiscreteUniformDistribution
,
UniformDistribution
,
NormalDistribution
,
ExponentialDistribution
,
GammaDistribution
, Serialized FormConstructor Summary | |
Distribution()
The default random number generator is 'BaysDurhamShuffle'. |
|
Distribution(long seed)
The random number generator is 'BaysDurhamShuffle' which is initialized to seed. |
Method Summary | |
MatrixI |
getRandomMatrix(int sizeOfRows,
int sizeOfColumns)
Returns a matrix of random numbers from the distribution. |
RandomI |
getRandomNumberGenerator()
Gets the random number generator. |
VectorI |
getRandomVector(int size)
Returns a vector of random numbers from the distribution. |
MatrixI |
setElements(MatrixI matrix)
Set the elements in a matrix to random values from the distribution. |
VectorI |
setElements(VectorI vector)
Set the elements in a vector to random values from the distribution. |
void |
setRandomNumberGenerator(RandomI random)
Sets the random number generator. |
void |
setSeed(long seed)
Sets the seed for the random number generator. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Distribution()
public Distribution(long seed)
Method Detail |
public void setSeed(long seed)
public void setRandomNumberGenerator(RandomI random)
public RandomI getRandomNumberGenerator()
public VectorI getRandomVector(int size)
DenseVector
.public MatrixI getRandomMatrix(int sizeOfRows, int sizeOfColumns)
DenseMatrix
.public VectorI setElements(VectorI vector)
public MatrixI setElements(MatrixI matrix)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |