ZipfDistr (cloudsim 3.1-SNAPSHOT API)

org.cloudbus.cloudsim.distributions

## Class ZipfDistr

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

- All Implemented Interfaces:
    ContinuousDistribution

      public class ZipfDistr
      extends Object
      implements ContinuousDistribution

  The Class ZipfDistr.
  Since:
    CloudSim Toolkit 1.0
  Author:
    Marcos Dias de Assuncao

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ZipfDistr(double shape, int population)` Instantiates a new zipf distr.
    `ZipfDistr(long seed, double shape, int population)` Instantiates a new zipf distr.

  - ### 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

    - #### ZipfDistr

          public ZipfDistr(long seed,
                   double shape,
                   int population)

      Instantiates a new zipf distr.
      Parameters:
        `seed` - the seed
        `shape` - the shape
        `population` - the population

    - #### ZipfDistr

          public ZipfDistr(double shape,
                   int population)

      Instantiates a new zipf distr.
      Parameters:
        `shape` - the shape
        `population` - the population

  - ### 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.