Interface ContinuousDistribution
- All Superinterfaces:
org.apache.commons.math3.distribution.RealDistribution
,StatisticalDistribution
- All Known Implementing Classes:
ExponentialDistr
,GammaDistr
,LognormalDistr
,LomaxDistr
,NormalDistr
,ParetoDistr
,UniformDistr
,WeibullDistr
public interface ContinuousDistribution extends StatisticalDistribution, org.apache.commons.math3.distribution.RealDistribution
Interface to be implemented by a Pseudo-Random Number Generator (PRNG)
that follows a defined statistical continuous distribution.
- Since:
- CloudSim Toolkit 1.0
- Author:
- Marcos Dias de Assuncao, Manoel Campos da Silva Filho
-
Field Summary
Fields Modifier and Type Field Description static ContinuousDistribution
NULL
An attribute that implements the Null Object Design Pattern forContinuousDistribution
objects. -
Method Summary
Modifier and Type Method Description default double
sample()
Generate a new pseudo random number.Methods inherited from interface org.apache.commons.math3.distribution.RealDistribution
cumulativeProbability, cumulativeProbability, density, getNumericalMean, getNumericalVariance, getSupportLowerBound, getSupportUpperBound, inverseCumulativeProbability, isSupportConnected, isSupportLowerBoundInclusive, isSupportUpperBoundInclusive, probability, reseedRandomGenerator, sample
Methods inherited from interface org.cloudbus.cloudsim.distributions.StatisticalDistribution
getSeed, isApplyAntitheticVariates, originalSample, setApplyAntitheticVariates
-
Field Details
-
NULL
An attribute that implements the Null Object Design Pattern forContinuousDistribution
objects.
-
-
Method Details
-
sample
default double sample()Description copied from interface:StatisticalDistribution
Generate a new pseudo random number. If theAntithetic Variates Technique
is enabled, the returned value is manipulated to try reducing variance or generated random numbers. Check the provided link for details.- Specified by:
sample
in interfaceorg.apache.commons.math3.distribution.RealDistribution
- Specified by:
sample
in interfaceStatisticalDistribution
- Returns:
- the next pseudo random number in the sequence, following the implemented distribution.
-