public class ExponentialPower extends AbstractContinousDistribution
Valid parameter ranges: tau >= 1.
Instance methods operate on a user supplied uniform random number generator; they are unsynchronized.
Implementation:
L. Devroye (1986): Non-Uniform Random Variate Generation , Springer Verlag, New York.
serialVersionUID
Constructor and Description |
---|
ExponentialPower(double tau,
RandomEngine randomGenerator)
Constructs an Exponential Power distribution.
|
Modifier and Type | Method and Description |
---|---|
double |
nextDouble()
Returns a random number from the distribution.
|
double |
nextDouble(double tau)
Returns a random number from the distribution; bypasses the internal state.
|
void |
setState(double tau)
Sets the distribution parameter.
|
static double |
staticNextDouble(double tau)
Returns a random number from the distribution.
|
String |
toString()
Returns a String representation of the receiver.
|
apply, apply, clone, makeDefaultGenerator, nextInt
public ExponentialPower(double tau, RandomEngine randomGenerator)
IllegalArgumentException
- if tau < 1.0.public double nextDouble()
nextDouble
in class AbstractDistribution
public double nextDouble(double tau)
IllegalArgumentException
- if tau < 1.0.public void setState(double tau)
IllegalArgumentException
- if tau < 1.0.public static double staticNextDouble(double tau)
IllegalArgumentException
- if tau < 1.0.Jas4pp 1.5 © Java Analysis Studio for Particle Physics