|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.math.distribution.ExponentialDistributionImpl
The default implementation of ExponentialDistribution
Constructor Summary | |
ExponentialDistributionImpl(double mean)
Create a exponential distribution with the given mean. |
Method Summary | |
double |
cummulativeProbability(double x)
For this disbution, X, this method returns P(X < x). |
double |
cummulativeProbability(double x0,
double x1)
For this disbution, X, this method returns P(x0 < X < x1). |
double |
getMean()
Access the mean. |
double |
inverseCummulativeProbability(double p)
For this distribution, X, this method returns the critical point x, such that P(X < x) = p . |
void |
setMean(double mean)
Modify the mean. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExponentialDistributionImpl(double mean)
mean
- mean of this distribution.Method Detail |
public void setMean(double mean)
setMean
in interface ExponentialDistribution
mean
- the new mean.public double getMean()
getMean
in interface ExponentialDistribution
public double cummulativeProbability(double x) throws MathException
cummulativeProbability
in interface ContinuousDistribution
x
- the value at which the CDF is evaluated.
MathException
public double inverseCummulativeProbability(double p) throws MathException
p
.
inverseCummulativeProbability
in interface ContinuousDistribution
p
- the desired probability
p
MathException
public double cummulativeProbability(double x0, double x1) throws MathException
cummulativeProbability
in interface ContinuousDistribution
x0
- the lower boundx1
- the upper bound
MathException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |