Package jasima.core.random.continuous
Class DblLogNormal
- java.lang.Object
-
- jasima.core.random.continuous.DblSequence
-
- jasima.core.random.continuous.DblDistribution
-
- jasima.core.random.continuous.DblLogNormal
-
- All Implemented Interfaces:
Serializable,Cloneable
public class DblLogNormal extends DblDistribution
Implements a number stream with values following a log-normal distribution.- Author:
- Torsten Hildebrandt
- See Also:
- Log- normal distribution (Wikipedia), Log- normal distribution (MathWorld), Serialized Form
-
-
Field Summary
-
Fields inherited from class jasima.core.random.continuous.DblSequence
rndGen
-
-
Constructor Summary
Constructors Constructor Description DblLogNormal()DblLogNormal(double scale, double shape)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetScale()doublegetShape()protected voidsetDistribution(org.apache.commons.math3.distribution.RealDistribution distribution)Sets the continuous distribution to use.voidsetScale(double scale)Sets the scale parameter to use.voidsetShape(double shape)Sets the shape parameter of the distribution.StringtoString()-
Methods inherited from class jasima.core.random.continuous.DblDistribution
getDistribution, getNumericalMean, getValueRange, nextDbl
-
Methods inherited from class jasima.core.random.continuous.DblSequence
clone, createStreamDefFromStream, getName, getRndGen, init, max, min, setName, setRndGen
-
-
-
-
Method Detail
-
setDistribution
protected void setDistribution(org.apache.commons.math3.distribution.RealDistribution distribution)
Description copied from class:DblDistributionSets the continuous distribution to use.- Overrides:
setDistributionin classDblDistribution
-
toString
public String toString()
- Overrides:
toStringin classDblDistribution
-
getScale
public double getScale()
-
setScale
public void setScale(double scale)
Sets the scale parameter to use.- Parameters:
scale- The scale value to use.
-
getShape
public double getShape()
-
setShape
public void setShape(double shape) throws org.apache.commons.math3.exception.NotStrictlyPositiveExceptionSets the shape parameter of the distribution.- Parameters:
shape- The shape parameter value to use.- Throws:
org.apache.commons.math3.exception.NotStrictlyPositiveException- If shape was<=0.
-
-