ExponentialDistr (cloudsim 3.1-SNAPSHOT API)

org.cloudbus.cloudsim.distributions

## Class ExponentialDistr

- java.lang.Object
- - org.cloudbus.cloudsim.distributions.ExponentialDistr

- All Implemented Interfaces:
    ContinuousDistribution

      public class ExponentialDistr
      extends Object
      implements ContinuousDistribution

  An exponential number generator.
  Since:
    CloudSim Toolkit 1.0
  Author:
    Marcos Dias de Assuncao

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ExponentialDistr(double mean)` Creates a new exponential number generator.
    `ExponentialDistr(long seed, double mean)` Creates a new exponential number generator.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `double` | `sample()` Generate a new random number.

    - ### Methods inherited from class java.lang.Object

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

- - ### Constructor Detail

    - #### ExponentialDistr

          public ExponentialDistr(long seed,
                          double mean)

      Creates a new exponential number generator.
      Parameters:
        `seed` - the seed to be used.
        `mean` - the mean for the distribution.

    - #### ExponentialDistr

          public ExponentialDistr(double mean)

      Creates a new exponential number generator.
      Parameters:
        `mean` - the mean for the distribution.

  - ### Method Detail

    - #### sample

          public double sample()

      Generate a new random number.
      Specified by:
        `sample` in interface `ContinuousDistribution`
      Returns:
        the next random number in the sequence

Copyright © 2013 The Cloud Computing and Distributed Systems (CLOUDS) Laboratory, The University of Melbourne. All Rights Reserved.