public static final class RandomDistribution.Zipf extends Object implements RandomDistribution.DiscreteRNG
| Modifier and Type | Field and Description |
|---|---|
private static double |
DEFAULT_EPSILON |
private ArrayList<Integer> |
k |
private Random |
random |
private ArrayList<Double> |
v |
private static final double DEFAULT_EPSILON
public Zipf(Random r, int min, int max, double sigma)
r - The random number generator.min - minimum integer (inclusvie)max - maximum integer (exclusive)sigma - parameter sigma. (sigma > 1.0)public int nextInt()
RandomDistribution.DiscreteRNGnextInt in interface RandomDistribution.DiscreteRNGRandomDistribution.DiscreteRNG.nextInt()Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.