Class LomaxDistr
java.lang.Object
org.apache.commons.math3.distribution.AbstractRealDistribution
org.apache.commons.math3.distribution.ParetoDistribution
org.cloudsimplus.distributions.ParetoDistr
org.cloudsimplus.distributions.LomaxDistr
- All Implemented Interfaces:
Serializable,org.apache.commons.math3.distribution.RealDistribution,ContinuousDistribution,StatisticalDistribution
A Pseudo-Random Number Generator following the
Lomax distribution.
- Since:
- CloudSim Toolkit 1.0
- Author:
- Marcos Dias de Assuncao, Manoel Campos da Silva Filho
- See Also:
-
Field Summary
Fields inherited from class org.apache.commons.math3.distribution.ParetoDistribution
DEFAULT_INVERSE_ABSOLUTE_ACCURACYFields inherited from class org.apache.commons.math3.distribution.AbstractRealDistribution
random, randomData, SOLVER_DEFAULT_ABSOLUTE_ACCURACYFields inherited from interface org.cloudsimplus.distributions.ContinuousDistribution
NULL -
Constructor Summary
ConstructorsConstructorDescriptionLomaxDistr(double shape, double location, double shift) Creates a Lomax Pseudo-Random Number Generator (PRNG) using the current time as seed.LomaxDistr(double shape, double location, double shift, long seed) Creates a Lomax Pseudo-Random Number Generator (PRNG).LomaxDistr(double shape, double location, double shift, long seed, org.apache.commons.math3.random.RandomGenerator rng) Creates a Lomax Pseudo-Random Number Generator (PRNG). -
Method Summary
Modifier and TypeMethodDescriptionlonggetSeed()voidreseedRandomGenerator(long seed) doublesample()Generate a new pseudo random number.Methods inherited from class org.cloudsimplus.distributions.ParetoDistr
isApplyAntitheticVariates, originalSample, setApplyAntitheticVariatesMethods inherited from class org.apache.commons.math3.distribution.ParetoDistribution
cumulativeProbability, cumulativeProbability, density, getNumericalMean, getNumericalVariance, getScale, getShape, getSolverAbsoluteAccuracy, getSupportLowerBound, getSupportUpperBound, isSupportConnected, isSupportLowerBoundInclusive, isSupportUpperBoundInclusive, logDensityMethods inherited from class org.apache.commons.math3.distribution.AbstractRealDistribution
inverseCumulativeProbability, probability, probability, sampleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.math3.distribution.RealDistribution
cumulativeProbability, cumulativeProbability, density, getNumericalMean, getNumericalVariance, getSupportLowerBound, getSupportUpperBound, inverseCumulativeProbability, isSupportConnected, isSupportLowerBoundInclusive, isSupportUpperBoundInclusive, probability, sampleMethods inherited from interface org.cloudsimplus.distributions.StatisticalDistribution
isApplyAntitheticVariates, originalSample, setApplyAntitheticVariates
-
Constructor Details
-
LomaxDistr
public LomaxDistr(double shape, double location, double shift) Creates a Lomax Pseudo-Random Number Generator (PRNG) using the current time as seed.- Parameters:
shape- the shape parameter of this distributionlocation- the location parameter of this distributionshift- the shift parameter of this distribution- See Also:
-
LomaxDistr
public LomaxDistr(double shape, double location, double shift, long seed) Creates a Lomax Pseudo-Random Number Generator (PRNG).- Parameters:
shape- the shape parameter of this distributionlocation- the location parameter of this distributionshift- the shift parameter of this distributionseed- the seed to initialize the generator- See Also:
-
LomaxDistr
public LomaxDistr(double shape, double location, double shift, long seed, org.apache.commons.math3.random.RandomGenerator rng) Creates a Lomax Pseudo-Random Number Generator (PRNG).- Parameters:
shape- the shape parameter of this distributionlocation- the location parameter of this distributionshift- the shift parameter of this distributionseed- the seed already used to initialize the Pseudo-Random Number Generatorrng- the actual Pseudo-Random Number Generator that will be the base to generate random numbers following a continuous distribution.
-
-
Method Details
-
sample
public double sample()Description copied from interface:StatisticalDistributionGenerate a new pseudo random number. If theAntithetic Variates Techniqueis enabled, the returned value is manipulated to try reducing variance of generated random numbers. Check link above for details.- Specified by:
samplein interfaceContinuousDistribution- Specified by:
samplein interfaceorg.apache.commons.math3.distribution.RealDistribution- Specified by:
samplein interfaceStatisticalDistribution- Overrides:
samplein classorg.apache.commons.math3.distribution.ParetoDistribution- Returns:
- the next pseudo random number in the sequence, following the implemented distribution.
-
getSeed
public long getSeed()- Specified by:
getSeedin interfaceStatisticalDistribution- Overrides:
getSeedin classParetoDistr- Returns:
- the seed used to initialize the generator
-
reseedRandomGenerator
public void reseedRandomGenerator(long seed) - Specified by:
reseedRandomGeneratorin interfaceorg.apache.commons.math3.distribution.RealDistribution- Overrides:
reseedRandomGeneratorin classParetoDistr
-