io.nosqlbench.virtdata.library.curves4.discrete.int_int.Zipf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of driver-cql-shaded Show documentation
Show all versions of driver-cql-shaded Show documentation
A Shaded CQL ActivityType driver for http://nosqlbench.io/
package io.nosqlbench.virtdata.library.curves4.discrete.int_int;
import io.nosqlbench.virtdata.api.annotations.Categories;
import io.nosqlbench.virtdata.api.annotations.Category;
import io.nosqlbench.virtdata.api.annotations.ThreadSafeMapper;
import org.apache.commons.statistics.distribution.ZipfDistribution;
/**
* @see Wikipedia: Zipf's Law
*
* @see Commons JavaDoc: ZipfDistribution
*
* {@inheritDoc}
*/
@ThreadSafeMapper
@Categories({Category.distributions})
public class Zipf extends IntToIntDiscreteCurve {
public Zipf(int numberOfElements, double exponent, String... modslist) {
super(new ZipfDistribution(numberOfElements, exponent), modslist);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy