public abstract class AbstractDistribution extends java.lang.Object implements Distribution, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
Serializable version identifier
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDistribution()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcumulativeProbabilityprivate static final long serialVersionUID
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 boundx0 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 > x1Copyright (c) 2003-2013 Apache Software Foundation