de.unihalle.informatik.MiToBo.math.distributions.impl
Class ExponentialDistribution
java.lang.Object
de.unihalle.informatik.MiToBo.math.distributions.impl.ExponentialDistribution
- All Implemented Interfaces:
- FirstOrderMoment<Double>, IntegrableDistribution<Double>, SecondOrderCentralMoment<Double>
@ALDMetaInfo(export=ALLOWED)
public class ExponentialDistribution
- extends Object
- implements IntegrableDistribution<Double>, FirstOrderMoment<Double>, SecondOrderCentralMoment<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. |
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
-
P
public double P(Double x)
- Description copied from interface:
IntegrableDistribution
- Evaluate probability distribution function P(X <= x)
- Specified by:
P
in interface IntegrableDistribution<Double>
- Parameters:
x
- realization of random variable X
- Returns:
- value of P(X <= x)
getMean
public Double getMean()
- Specified by:
getMean
in interface FirstOrderMoment<Double>
getCovariance
public Double getCovariance()
- Specified by:
getCovariance
in interface SecondOrderCentralMoment<Double>
setLambda
public void setLambda(double lambda)
getLambda
public double getLambda()
Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.