|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface used by algorithms to access all distributions.
BinomialDistribution
,
PoissonDistribution
,
EmpiricalDistribution
,
DiscreteUniformDistribution
,
UniformDistribution
,
NormalDistribution
,
ExponentialDistribution
,
GammaDistribution
Method Summary | |
double |
cdf(double x)
Returns the value of the cumulative distribution function at x; |
MatrixI |
getRandomMatrix(int sizeOfRows,
int sizeOfColumns)
Returns a matrix of random numbers from the distribution. |
RandomI |
getRandomNumberGenerator()
Gets the random number generator. |
double |
getRandomScaler()
Returns a random number from the distribution. |
VectorI |
getRandomVector(int size)
Returns a vector of random numbers from the distribution. |
double |
mean()
Returns the mean of the distribution. |
double |
pdf(double x)
Returns the value of the probability distribution function at x; |
double |
probability(double x)
Returns the probability of x. |
double |
probability(double x1,
double x2)
Returns the probability that x >= x1 and x <= x2. |
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. |
double |
std()
Returns the standard deviation of the distribution. |
double |
variance()
Returns the variance of the distribution. |
Method Detail |
public void setSeed(long seed)
public void setRandomNumberGenerator(RandomI random)
public RandomI getRandomNumberGenerator()
public double getRandomScaler()
public VectorI getRandomVector(int size)
public MatrixI getRandomMatrix(int sizeOfRows, int sizeOfColumns)
public VectorI setElements(VectorI vector)
public MatrixI setElements(MatrixI matrix)
public double mean()
public double variance()
public double std()
public double pdf(double x)
public double cdf(double x)
public double probability(double x)
public double probability(double x1, double x2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |