umontreal.iro.lecuyer.probdist
Class ExponentialDistFromMean
- java.lang.Object
-
- umontreal.iro.lecuyer.probdist.ContinuousDistribution
-
- umontreal.iro.lecuyer.probdist.ExponentialDist
-
- umontreal.iro.lecuyer.probdist.ExponentialDistFromMean
-
- All Implemented Interfaces:
- Distribution
public class ExponentialDistFromMean extends ExponentialDist
Extends theExponentialDistclass with a constructor accepting as argument the mean 1/λ instead of the rate λ.
-
-
Field Summary
-
Fields inherited from class umontreal.iro.lecuyer.probdist.ContinuousDistribution
decPrec
-
-
Constructor Summary
Constructors Constructor and Description ExponentialDistFromMean(double mean)Constructs a new exponential distribution with mean mean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidsetMean(double mean)CallssetLambdawith argument 1/mean to change the mean of this distribution.-
Methods inherited from class umontreal.iro.lecuyer.probdist.ExponentialDist
barF, barF, cdf, cdf, density, density, getInstanceFromMLE, getLambda, getMean, getMean, getMLE, getParams, getStandardDeviation, getStandardDeviation, getVariance, getVariance, inverseF, inverseF, setLambda, toString
-
Methods inherited from class umontreal.iro.lecuyer.probdist.ContinuousDistribution
getXinf, getXsup, inverseBisection, inverseBrent, setXinf, setXsup
-
-
-
-
Constructor Detail
-
ExponentialDistFromMean
public ExponentialDistFromMean(double mean)
Constructs a new exponential distribution with mean mean.- Parameters:
mean- the required mean.
-
-
Method Detail
-
setMean
public void setMean(double mean)
CallssetLambdawith argument 1/mean to change the mean of this distribution.- Parameters:
mean- the new mean.
-
-
DMelt 3.0 © DataMelt by jWork.ORG