|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Distribution
Base interface for probability distributions.
| 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). |
double |
getNumericalMean()
Use this method to get the numerical value of the mean of this distribution. |
double |
getNumericalVariance()
Use this method to get the numerical value of the variance of this distribution. |
boolean |
isSupportConnected()
Use this method to get information about whether the support is connected, i.e. whether all values between the lower and upper bound of the support is included in the support. |
boolean |
isSupportLowerBoundInclusive()
Use this method to get information about whether the lower bound of the support is inclusive or not. |
boolean |
isSupportUpperBoundInclusive()
Use this method to get information about whether the upper bound of the support is inclusive or not. |
| Method Detail |
|---|
double cumulativeProbability(double x)
x - the value at which the distribution function is evaluated.
x
double cumulativeProbability(double x0,
double x1)
x0 - the (inclusive) lower boundx1 - the (inclusive) upper bound
x0 and x1,
including the endpoints
java.lang.IllegalArgumentException - if x0 > x1double getNumericalMean()
double getNumericalVariance()
TDistributionImpl) or
Double.NaN if it's not definedboolean isSupportLowerBoundInclusive()
boolean isSupportUpperBoundInclusive()
boolean isSupportConnected()
AbstractIntegerDistribution the support is discrete, so
if this is true, then the support is
{lower bound, lower bound + 1, ..., upper bound}.
For AbstractContinuousDistribution the support is continuous, so
if this is true, then the support is the interval
[lower bound, upper bound]
where the limits are inclusive or not according to
isSupportLowerBoundInclusive() and isSupportUpperBoundInclusive()
(in the example both are true). If both are false, then the support is the interval
(lower bound, upper bound)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||