|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.distribution.AbstractDiscreteDistribution
Base class for various discrete distributions. It provides default implementations for some of the methods that do not vary from distribution to distribution.
Constructor Summary | |
protected |
AbstractDiscreteDistribution()
Default constructor. |
Method Summary | |
double |
cummulativeProbability(int x0,
int x1)
For this disbution, X, this method returns P(x0 ≤ X ≤ x1). |
protected abstract int |
getDomainLowerBound(double p)
Access the domain value lower bound, based on p , used to
bracket a PDF root. |
protected abstract int |
getDomainUpperBound(double p)
Access the domain value upper bound, based on p , used to
bracket a PDF root. |
int |
inverseCummulativeProbability(double p)
For this distribution, X, this method returns the critical point x, such that P(X ≤ x) ≤ p . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.math.distribution.DiscreteDistribution |
cummulativeProbability, probability |
Constructor Detail |
protected AbstractDiscreteDistribution()
Method Detail |
public double cummulativeProbability(int x0, int x1) throws MathException
cummulativeProbability
in interface DiscreteDistribution
x0
- the inclusive, lower boundx1
- the inclusive, upper bound
MathException
public int inverseCummulativeProbability(double p) throws MathException
p
.
inverseCummulativeProbability
in interface DiscreteDistribution
p
- the desired probability
p
MathException
protected abstract int getDomainLowerBound(double p)
p
, used to
bracket a PDF root. This method is used by
inverseCummulativeProbability(double)
to find critical values.
p
- the desired probability for the critical value
p
protected abstract int getDomainUpperBound(double p)
p
, used to
bracket a PDF root. This method is used by
inverseCummulativeProbability(double)
to find critical values.
p
- the desired probability for the critical value
p
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |