public class ZipfDistr extends java.lang.Object implements ContinuousDistribution
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
double |
sample()
Generate a new random number.
|
public ZipfDistr(long seed,
double shape,
int population)
seed - the seedshape - the shapepopulation - the populationpublic ZipfDistr(double shape,
int population)
shape - the shapepopulation - the populationpublic double sample()
sample in interface ContinuousDistribution