|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.math.distribution.AbstractDistribution
public abstract class AbstractDistribution
Base class for probability distributions.
| Constructor Summary | |
|---|---|
protected |
AbstractDistribution()
Default constructor. |
| Method Summary | |
|---|---|
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). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.commons.math.distribution.Distribution |
|---|
cumulativeProbability |
| Constructor Detail |
|---|
protected AbstractDistribution()
| Method Detail |
|---|
public double cumulativeProbability(double x0,
double x1)
throws MathException
The default implementation uses the identity
P(x0 ≤ X ≤ x1) = P(X ≤ x1) - P(X ≤ x0)
cumulativeProbability in interface Distributionx0 - 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.
java.lang.IllegalArgumentException - if x0 > x1
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||