Package jasima.core.random.continuous
Class DblExp
- java.lang.Object
-
- jasima.core.random.continuous.DblSequence
-
- jasima.core.random.continuous.DblDistribution
-
- jasima.core.random.continuous.DblExp
-
- All Implemented Interfaces:
Serializable,Cloneable
public final class DblExp extends DblDistribution
A class implementing a number stream with values following the Exponential distribution.- Author:
- Torsten Hildebrandt
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static doubleDEFAULT_MEAN-
Fields inherited from class jasima.core.random.continuous.DblSequence
rndGen
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DblSequenceclone()Clones the current number stream.doublegetMean()voidsetMean(double mean)Sets the mean of the exponential distribution.StringtoString()-
Methods inherited from class jasima.core.random.continuous.DblDistribution
getDistribution, getNumericalMean, getValueRange, nextDbl, setDistribution
-
Methods inherited from class jasima.core.random.continuous.DblSequence
createStreamDefFromStream, getName, getRndGen, init, max, min, setName, setRndGen
-
-
-
-
Field Detail
-
DEFAULT_MEAN
public static final double DEFAULT_MEAN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMean
public double getMean()
-
setMean
public void setMean(double mean) throws org.apache.commons.math3.exception.NotStrictlyPositiveExceptionSets the mean of the exponential distribution.- Parameters:
mean- The exponential distribution's mean. This value has to be>0.- Throws:
org.apache.commons.math3.exception.NotStrictlyPositiveException- If the supplied mean value was not positive.
-
toString
public String toString()
- Overrides:
toStringin classDblDistribution
-
clone
public DblSequence clone()
Description copied from class:DblSequenceClones the current number stream. This method fails with aCloneNotSupportedExceptionif there is a random number generator associated with this stream.- Overrides:
clonein classDblSequence
-
-