public interface IntegerDistribution extends DiscreteDistribution
| Modifier and Type | Method and Description |
|---|---|
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).
|
int |
inverseCumulativeProbability(double p)
For this distribution, X, this method returns the largest x such that
P(X ≤ x) <= p.
|
double |
probability(int x)
For a random variable X whose values are distributed according
to this distribution, this method returns P(X = x).
|
probabilitycumulativeProbability, cumulativeProbabilitydouble probability(int x)
x - the value at which the probability density function is evaluated.double cumulativeProbability(int x)
throws MathException
x - the value at which the PDF is evaluated.MathException - if the cumulative probability can not be
computed due to convergence or other numerical errors.double cumulativeProbability(int x0,
int x1)
throws MathException
x0 - the inclusive, lower boundx1 - the inclusive, upper boundMathException - if the cumulative probability can not be
computed due to convergence or other numerical errors.java.lang.IllegalArgumentException - if x0 > x1int inverseCumulativeProbability(double p)
throws MathException
Note that this definition implies:
m, with positive
probability 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.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.p - the cumulative probability.MathException - if the inverse cumulative probability can not be
computed due to convergence or other numerical errors.java.lang.IllegalArgumentException - if p is not between 0 and 1 (inclusive)Copyright © 2010 - 2023 Adobe. All Rights Reserved