|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--drasys.or.prob.Distribution | +--drasys.or.prob.DiscreteDistribution | +--drasys.or.prob.DiscreteUniformDistribution
An implementation of the discrete uniform probability distribution.
References:
The Art of Computer Programming: Seminumerical Algorithms (Vol 2, 3rd Ed)
Donald Ervin Knuth; Hardcover
Numerical Recipes in C : The Art of Scientific Computing
William H. Press, et al / Hardcover / Published 1993
Probability and Statistics
Morris H. Degroot / Hardcover / Published 1986
Mathematical Statistics With Applications
Dennis D. Wackerly, et al / Hardcover / Published 1996
Constructor Summary | |
DiscreteUniformDistribution(int min,
int increment,
int size)
|
|
DiscreteUniformDistribution(int min,
int increment,
int size,
long seed)
|
Method Summary | |
double |
cdf(int x)
Returns the value of the cumulative distribution function at x; |
boolean |
equals(java.lang.Object o)
|
int |
getRandomInteger()
Returns a random number from the discrete uniform distribution. |
double |
mean()
Returns the mean of the distribution. |
double |
pdf(int x)
Returns the value of the probability distribution function at x; |
double |
probability(int x1,
int x2)
Returns the probability that x >= x1 and x <= x2. |
void |
setParameters(int min,
int increment,
int size)
Sets the distribution parameters. |
double |
std()
Returns the standard deviation of the distribution. |
java.lang.String |
toString()
|
double |
variance()
Returns the variance of the distribution. |
Methods inherited from class drasys.or.prob.DiscreteDistribution |
cdf,
getRandomArray,
getRandomArray,
getRandomScaler,
pdf,
probability,
probability |
Methods inherited from class drasys.or.prob.Distribution |
getRandomMatrix,
getRandomNumberGenerator,
getRandomVector,
setElements,
setElements,
setRandomNumberGenerator,
setSeed |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public DiscreteUniformDistribution(int min, int increment, int size)
public DiscreteUniformDistribution(int min, int increment, int size, long seed)
Method Detail |
public void setParameters(int min, int increment, int size)
public int getRandomInteger()
public double mean()
public double variance()
public double std()
public double pdf(int x)
public double cdf(int x)
public double probability(int x1, int x2)
public boolean equals(java.lang.Object o)
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |