public abstract class AbstractDistribution extends java.lang.Object implements Distribution, java.io.Serializable
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).
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cumulativeProbability
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 © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"