public class Zeta extends AbstractDiscreteDistribution
Valid parameter ranges: ro > 0 and pk >= 0.
Instance methods operate on a user supplied uniform random number generator; they are unsynchronized.
Implementation:
J. Dagpunar (1988): Principles of Random Variate Generation, Clarendon Press, Oxford.
serialVersionUID
Constructor and Description |
---|
Zeta(double ro,
double pk,
RandomEngine randomGenerator)
Constructs a Zeta distribution.
|
Modifier and Type | Method and Description |
---|---|
int |
nextInt()
Returns a random number from the distribution.
|
void |
setState(double ro,
double pk)
Sets the parameters.
|
static int |
staticNextInt(double ro,
double pk)
Returns a random number from the distribution.
|
String |
toString()
Returns a String representation of the receiver.
|
nextDouble
apply, apply, clone, makeDefaultGenerator
public Zeta(double ro, double pk, RandomEngine randomGenerator)
public int nextInt()
nextInt
in class AbstractDiscreteDistribution
public void setState(double ro, double pk)
public static int staticNextInt(double ro, double pk)
Jas4pp 1.5 © Java Analysis Studio for Particle Physics