|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface used by algorithms to access discrete distributions. It extends 'DistributionI'.
BinomialDistribution
,
PoissonDistribution
,
EmpiricalDistribution
,
DiscreteUniformDistribution
Method Summary | |
double |
cdf(int x)
Returns the value of the cumulative distribution function at 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. |
int |
getRandomInteger()
Returns a random integer from the discrete 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. |
Methods inherited from interface drasys.or.prob.DistributionI |
cdf,
getRandomMatrix,
getRandomNumberGenerator,
getRandomScaler,
getRandomVector,
mean,
pdf,
probability,
probability,
setElements,
setElements,
setRandomNumberGenerator,
setSeed,
std,
variance |
Method Detail |
public int getRandomInteger()
public int[] getRandomArray(int size)
public int[][] getRandomArray(int sizeOfRows, int sizeOfColumns)
public double pdf(int x)
public double cdf(int x)
public double probability(int x1, int x2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |