| org.apache.commons.math.distribution.IntegerDistribution
All known Subclasses: org.apache.commons.math.distribution.AbstractIntegerDistribution,
IntegerDistribution | public interface IntegerDistribution extends DiscreteDistribution(Code) | | Interface for discrete distributions of integer-valued random variables.
version: $Revision: 155427 $ $Date: 2005-02-26 06:11:52 -0700 (Sat, 26 Feb 2005) $ |
Method Summary | |
double | cumulativeProbability(int x) For a random variable X whose values are distributed according
to this distribution, this method returns P(X ≤ x). | double | cumulativeProbability(int x0, int x1) For this distribution, X, this method returns P(x0 ≤ X ≤ x1).
Parameters: x0 - the inclusive, lower bound Parameters: x1 - the inclusive, upper bound the cumulative probability. | int | inverseCumulativeProbability(double p) For this distribution, X, this method returns the largest x such that
P(X ≤ x) <= p.
Note that this definition implies:
- If there is a minimum value,
m , with postive
probablility under (the density of) X, then m - 1 is
returned by inverseCumulativeProbability(0). If there is
no such value m, Integer.MIN_VALUE is
returned.
- If there is a maximum value,
M , such that
P(X ≤ M) =1, then M is returned by
inverseCumulativeProbability(1).
If there is no such value, M, Integer.MAX_VALUE is
returned.
Parameters: p - the cumulative probability. | double | probability(int x) For a random variable X whose values are distributed according
to this distribution, this method returns P(X = x). |
cumulativeProbability | double cumulativeProbability(int 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 probability distribution function, or PDF
for the distribution.
Parameters: x - the value at which the PDF is evaluated. PDF for this distribution. throws: MathException - if the cumulative probability can not becomputed due to convergence or other numerical errors. |
cumulativeProbability | double cumulativeProbability(int x0, int x1) throws MathException(Code) | | For this distribution, X, this method returns P(x0 ≤ X ≤ x1).
Parameters: x0 - the inclusive, lower bound Parameters: x1 - the inclusive, upper bound the cumulative probability. throws: MathException - if the cumulative probability can not becomputed due to convergence or other numerical errors. throws: IllegalArgumentException - if x0 > x1 |
inverseCumulativeProbability | int inverseCumulativeProbability(double p) throws MathException(Code) | | For this distribution, X, this method returns the largest x such that
P(X ≤ x) <= p.
Note that this definition implies:
- If there is a minimum value,
m , with postive
probablility under (the density of) X, then m - 1 is
returned by inverseCumulativeProbability(0). If there is
no such value m, Integer.MIN_VALUE is
returned.
- If there is a maximum value,
M , such that
P(X ≤ M) =1, then M is returned by
inverseCumulativeProbability(1).
If there is no such value, M, Integer.MAX_VALUE is
returned.
Parameters: p - the cumulative probability. the largest x such that P(X ≤ x) <= p throws: MathException - if the inverse cumulative probability can not becomputed due to convergence or other numerical errors. throws: IllegalArgumentException - if p is not between 0 and 1 (inclusive) |
probability | double probability(int x)(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 probability mass function for the distribution.
Parameters: x - the value at which the probability density function is evaluated. the value of the probability density function at x |
|
|