| org.apache.commons.math.distribution.Distribution
All known Subclasses: org.apache.commons.math.distribution.AbstractDistribution,
Distribution | public interface Distribution (Code) | | Base interface for probability distributions.
version: $Revision: 155427 $ $Date: 2005-02-26 06:11:52 -0700 (Sat, 26 Feb 2005) $ |
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). |
cumulativeProbability | double cumulativeProbability(double x) throws MathException(Code) | | For a random variable X whose values are distributed according
to this distribution, this method returns P(X ≤ x). In other words,
this method represents the (cumulative) distribution function, or
CDF, for this distribution.
Parameters: x - the value at which the distribution function is evaluated. the probability that a random variable with thisdistribution takes a value less than or equal to x throws: MathException - if the cumulative probability can not becomputed due to convergence or other numerical errors. |
cumulativeProbability | double cumulativeProbability(double x0, double x1) throws MathException(Code) | | For a random variable X whose values are distributed according
to this distribution, this method returns P(x0 ≤ X ≤ x1).
Parameters: x0 - the (inclusive) lower bound Parameters: x1 - the (inclusive) upper bound the probability that a random variable with this distributionwill take a value between x0 and x1 , including the endpoints throws: MathException - if the cumulative probability can not becomputed due to convergence or other numerical errors. throws: IllegalArgumentException - if x0 > x1 |
|
|