|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Distribution
Base interface for probability distributions.
Method Summary | |
---|---|
double |
cumulativeProbability(double x)
For a random variable X whose values are distributed according to this distribution, this method returns P(X ≤ x). |
double |
cumulativeProbability(double x0,
double x1)
For a random variable X whose values are distributed according to this distribution, this method returns P(x0 ≤ X ≤ x1). |
Method Detail |
---|
double cumulativeProbability(double x) throws MathException
x
- the value at which the distribution function is evaluated.
x
MathException
- if the cumulative probability can not be
computed due to convergence or other numerical errors.double cumulativeProbability(double x0, double x1) throws MathException
x0
- the (inclusive) lower boundx1
- the (inclusive) upper bound
x0
and x1
,
including the endpoints
MathException
- if the cumulative probability can not be
computed due to convergence or other numerical errors.
IllegalArgumentException
- if x0 > x1
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |