|
|||||||||
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
An abstract class shared by all discrete distributions.
BinomialDistribution
,
PoissonDistribution
,
EmpiricalDistribution
,
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
, Serialized FormConstructor Summary | |
DiscreteDistribution()
|
|
DiscreteDistribution(long seed)
|
Method Summary | |
double |
cdf(double x)
Returns cdf((int)x); |
int[] |
getRandomArray(int size)
Returns an array of random numbers from the distribution. |
int[][] |
getRandomArray(int sizeOfRows,
int sizeOfColumns)
Returns a two dimensional array of random integers from the distribution. |
double |
getRandomScaler()
Returns 'getRandomInteger'. |
double |
pdf(double x)
Returns pdf((int)x); |
double |
probability(double x)
Returns probability((int)x). |
double |
probability(double x1,
double x2)
Returns probability((int)x1, (int)x2). |
Methods inherited from class drasys.or.prob.Distribution |
getRandomMatrix,
getRandomNumberGenerator,
getRandomVector,
setElements,
setElements,
setRandomNumberGenerator,
setSeed |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DiscreteDistribution()
public DiscreteDistribution(long seed)
Method Detail |
public double getRandomScaler()
public int[] getRandomArray(int size)
public int[][] getRandomArray(int sizeOfRows, int sizeOfColumns)
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 |