public class ZipfianDistribution extends COLTDiscreteDistribution
generatorname| Constructor and Description |
|---|
ZipfianDistribution(java.lang.String name,
double z)
Creates an instance of a Zipfian distribution based on the COLT library.
|
| Modifier and Type | Method and Description |
|---|---|
double |
draw()
Draw a value from the distribution according to the distribution at hand
|
double |
getZ() |
getName, toStringpublic ZipfianDistribution(java.lang.String name,
double z)
throws java.lang.IllegalArgumentException
name - The name of the distribution (will be prefixed by ZipfianDistribution_)z - The skew of the distribution to modeljava.lang.IllegalArgumentException - An exception is thrown when the skew of the distribution is not larger than unity, since otherwise the COLT distribution won't terminatepublic double getZ()
public double draw()
UnivariateDistributiondraw in class UnivariateDistribution