Example usage for Java org.apache.commons.math3.distribution ZipfDistribution fields, constructors, methods, implement or subclass
The text is from its open source code.
ZipfDistribution(final int numberOfElements, final double exponent) Create a new Zipf distribution with the given number of elements and exponent. | |
ZipfDistribution(RandomGenerator rng, int numberOfElements, double exponent) Creates a Zipf distribution. |
double | probability(final int x) |
int | sample() The default implementation uses the inversion method. |