|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Base interface for various discrete distributions.
Method Summary | |
double |
cummulativeProbability(int x)
For this disbution, X, this method returns P(X ≤ x). |
double |
cummulativeProbability(int x0,
int x1)
For this disbution, X, this method returns P(x0 ≤ X ≤ x1). |
int |
inverseCummulativeProbability(double p)
For this disbution, X, this method returns x such that P(X ≤ x) <= p. |
double |
probability(int x)
For this disbution, X, this method returns P(X = x). |
Method Detail |
public double probability(int x)
x
- the value at which the PMF is evaluated.
public double cummulativeProbability(int x) throws MathException
x
- the value at which the PDF is evaluated.
MathException
public double cummulativeProbability(int x0, int x1) throws MathException
x0
- the inclusive, lower boundx1
- the inclusive, upper bound
MathException
public int inverseCummulativeProbability(double p) throws MathException
p
- the cummulative probability.
MathException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |