ZipfDistr

public class ZipfDistr extends ContinuousDistributionAbstract

A pseudo random number generator following the Zipf distribution.

Author:Marcos Dias de Assuncao

Constructors

ZipfDistr

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

Instantiates a new Zipf pseudo random number generator.

Parameters:
  • seed – the seed
  • shape – the shape
  • population – the population

ZipfDistr

public ZipfDistr(double shape, int population)

Instantiates a new Zipf pseudo random number generator.

Parameters:
  • shape – the shape
  • population – the population

Methods

sample

public double sample()