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, V
rng
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, reset
public ZipfDistribution(double pQ, int pN, RandomNumberGenerator rng)
public ZipfDistribution(double pQ, int pN)
public int next()
DiscreteDistribution
next
in class ZipfMandelbrotDistribution