public class ZipfDistribution extends ZipfMandelbrotDistribution
p_k=C*kˆ(-q), k=1..N, q>1 C: normalization constant, C=1/sum(kˆ(-q),k=1..N)
Hx0, IMax, Q, S, Vrng| Constructor and Description |
|---|
ZipfDistribution(double pQ,
int pN) |
ZipfDistribution(double pQ,
int pN,
RandomNumberGenerator rng) |
| Modifier and Type | Method and Description |
|---|---|
int |
next()
Create random numbers
|
getDefaultRNG, getRandomNumberGenerator, resetpublic ZipfDistribution(double pQ,
int pN,
RandomNumberGenerator rng)
public ZipfDistribution(double pQ,
int pN)
public int next()
DiscreteDistributionnext in class ZipfMandelbrotDistribution