de.unihalle.informatik.MiToBo.math.distributions.impl
Class ExponentialDistribution
java.lang.Object
de.unihalle.informatik.MiToBo.math.distributions.impl.ExponentialDistribution
- All Implemented Interfaces:
- FirstOrderMoment<java.lang.Double>, IntegrableDistribution<java.lang.Double>, SecondOrderCentralMoment<java.lang.Double>
public class ExponentialDistribution
- extends java.lang.Object
- implements IntegrableDistribution<java.lang.Double>, FirstOrderMoment<java.lang.Double>, SecondOrderCentralMoment<java.lang.Double>
Exponential distribution.
- Author:
- Oliver Gress
Field Summary |
protected double |
lambda
|
Constructor Summary |
ExponentialDistribution(double lambda)
Constructor for exponential distribution lambda*exp(-lambda*x) if x >= 0. |
Method Summary |
java.lang.Double |
getCovariance()
|
double |
getLambda()
|
java.lang.Double |
getMean()
|
double |
P(java.lang.Double x)
Evaluate probability distribution function P(X <= x) |
void |
setLambda(double lambda)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lambda
protected double lambda
ExponentialDistribution
public ExponentialDistribution(double lambda)
- Constructor for exponential distribution lambda*exp(-lambda*x) if x >= 0.
- Parameters:
lambda
-
getCovariance
public java.lang.Double getCovariance()
- Specified by:
getCovariance
in interface SecondOrderCentralMoment<java.lang.Double>
getLambda
public double getLambda()
getMean
public java.lang.Double getMean()
- Specified by:
getMean
in interface FirstOrderMoment<java.lang.Double>
P
public double P(java.lang.Double x)
- Description copied from interface:
IntegrableDistribution
- Evaluate probability distribution function P(X <= x)
- Specified by:
P
in interface IntegrableDistribution<java.lang.Double>
- Parameters:
x
- realization of random variable X
- Returns:
- value of P(X <= x)
setLambda
public void setLambda(double lambda)