Class LognormalDistr
java.lang.Object
org.apache.commons.math3.distribution.AbstractRealDistribution
org.apache.commons.math3.distribution.LogNormalDistribution
org.cloudbus.cloudsim.distributions.LognormalDistr
- All Implemented Interfaces:
java.io.Serializable
,org.apache.commons.math3.distribution.RealDistribution
,ContinuousDistribution
public class LognormalDistr extends org.apache.commons.math3.distribution.LogNormalDistribution implements ContinuousDistribution
A Pseudo-Random Number Generator following the
Log-normal
distribution.
- Since:
- CloudSim Toolkit 1.0
- Author:
- Marcos Dias de Assuncao
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class org.apache.commons.math3.distribution.LogNormalDistribution
DEFAULT_INVERSE_ABSOLUTE_ACCURACY
-
Constructor Summary
Constructors Constructor Description LognormalDistr(double shape, double scale)
Creates a Log-normal Pseudo-Random Number Generator (RNG).LognormalDistr(double shape, double scale, long seed)
Creates a Log-normal Pseudo-Random Number Generator (RNG).LognormalDistr(double shape, double scale, long seed, org.apache.commons.math3.random.RandomGenerator rng)
Creates a Log-normal Pseudo-Random Number Generator (RNG). -
Method Summary
Modifier and Type Method Description long
getSeed()
Gets the seed used to initialize the generatorvoid
reseedRandomGenerator(long seed)
Methods inherited from class org.apache.commons.math3.distribution.LogNormalDistribution
cumulativeProbability, cumulativeProbability, density, getNumericalMean, getNumericalVariance, getScale, getShape, getSolverAbsoluteAccuracy, getSupportLowerBound, getSupportUpperBound, isSupportConnected, isSupportLowerBoundInclusive, isSupportUpperBoundInclusive, logDensity, probability, sample
Methods inherited from class org.apache.commons.math3.distribution.AbstractRealDistribution
inverseCumulativeProbability, probability, sample
-
Constructor Details
-
LognormalDistr
public LognormalDistr(double shape, double scale)Creates a Log-normal Pseudo-Random Number Generator (RNG).- Parameters:
shape
- the shape parameter of this distributionscale
- the scale parameter of this distribution
-
LognormalDistr
public LognormalDistr(double shape, double scale, long seed)Creates a Log-normal Pseudo-Random Number Generator (RNG).- Parameters:
shape
- the shape parameter of this distributionscale
- the scale parameter of this distributionseed
- the seed
-
LognormalDistr
public LognormalDistr(double shape, double scale, long seed, org.apache.commons.math3.random.RandomGenerator rng)Creates a Log-normal Pseudo-Random Number Generator (RNG).- Parameters:
shape
- the shape parameter of this distributionscale
- the scale parameter of this distributionseed
- the seed
-
-
Method Details
-
reseedRandomGenerator
public void reseedRandomGenerator(long seed)- Specified by:
reseedRandomGenerator
in interfaceorg.apache.commons.math3.distribution.RealDistribution
- Overrides:
reseedRandomGenerator
in classorg.apache.commons.math3.distribution.AbstractRealDistribution
-
getSeed
public long getSeed()Description copied from interface:ContinuousDistribution
Gets the seed used to initialize the generator- Specified by:
getSeed
in interfaceContinuousDistribution
- Returns:
-