|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.distribution.AbstractContinuousDistribution
Base class for various continuous distributions. It provides default implementations for some of the methods that do not vary from distribution to distribution.
Constructor Summary | |
protected |
AbstractContinuousDistribution()
Default constructor. |
Method Summary | |
double |
cummulativeProbability(double x0,
double x1)
For this distribution, X, this method returns P(x0 < X < x1). |
protected abstract double |
getDomainLowerBound(double p)
Access the domain value lower bound, based on p , used to
bracket a CDF root. |
protected abstract double |
getDomainUpperBound(double p)
Access the domain value upper bound, based on p , used to
bracket a CDF root. |
protected abstract double |
getInitialDomain(double p)
Access the initial domain value, based on p , used to
bracket a CDF root. |
double |
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.ContinuousDistribution |
cummulativeProbability |
Constructor Detail |
protected AbstractContinuousDistribution()
Method Detail |
public double cummulativeProbability(double x0, double x1) throws MathException
cummulativeProbability
in interface ContinuousDistribution
x0
- the lower boundx1
- the upper bound
MathException
public double inverseCummulativeProbability(double p) throws MathException
p
.
inverseCummulativeProbability
in interface ContinuousDistribution
p
- the desired probability
p
MathException
protected abstract double getInitialDomain(double p)
p
, used to
bracket a CDF root. This method is used by
inverseCummulativeProbability(double)
to find critical values.
p
- the desired probability for the critical value
protected abstract double getDomainLowerBound(double p)
p
, used to
bracket a CDF root. This method is used by
inverseCummulativeProbability(double)
to find critical values.
p
- the desired probability for the critical value
p
protected abstract double getDomainUpperBound(double p)
p
, used to
bracket a CDF 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 |