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

    Fields inherited from class org.apache.commons.math3.distribution.AbstractRealDistribution

    random, randomData, SOLVER_DEFAULT_ABSOLUTE_ACCURACY

    Fields inherited from interface org.cloudbus.cloudsim.distributions.ContinuousDistribution

    NULL
  • 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 generator
    void 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.cloudbus.cloudsim.distributions.ContinuousDistribution

    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 distribution
      scale - 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 distribution
      scale - the scale parameter of this distribution
      seed - 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 distribution
      scale - the scale parameter of this distribution
      seed - the seed
  • Method Details

    • reseedRandomGenerator

      public void reseedRandomGenerator​(long seed)
      Specified by:
      reseedRandomGenerator in interface org.apache.commons.math3.distribution.RealDistribution
      Overrides:
      reseedRandomGenerator in class org.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 interface ContinuousDistribution
      Returns: