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, wait
cumulativeProbability
private 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 Distribution
x0
- 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 > x1
Copyright (c) 2003-2016 Apache Software Foundation