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, VrngCREATE_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, resetpublic ZipfDistribution(double pQ,
int pN,
RandomNumberGenerator rng)
public ZipfDistribution(double pQ,
int pN)
public static ZipfDistribution createInstance(SimNode ownNode, Parameters pars, RandomNumberGenerator rng)
ReflectionConstructablepublic int next()
DiscreteDistributionnext in class ZipfMandelbrotDistribution