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
CREATE_INSTANCE_METHOD_NAME
Constructor and Description |
---|
ZipfDistribution(double pQ,
int pN) |
ZipfDistribution(double pQ,
int pN,
RandomNumberGenerator rng) |
Modifier and Type | Method and Description |
---|---|
static ZipfDistribution |
createInstance(SimNode ownNode,
Parameters pars,
RandomNumberGenerator rng)
as required by
ReflectionConstructable |
int |
next()
Create random numbers
|
getDefaultRNG, getRandomNumberGenerator, reset
public ZipfDistribution(double pQ, int pN, RandomNumberGenerator rng)
public ZipfDistribution(double pQ, int pN)
public static ZipfDistribution createInstance(SimNode ownNode, Parameters pars, RandomNumberGenerator rng)
ReflectionConstructable
public int next()
DiscreteDistribution
next
in class ZipfMandelbrotDistribution