public class ExponentialPower extends AbstractContinousDoubleDistribution
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.
Constructor and Description |
---|
ExponentialPower(double tau,
DoubleRandomEngine 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, DoubleRandomEngine randomGenerator)
IllegalArgumentException
- if tau < 1.0.public double nextDouble()
nextDouble
in class AbstractDoubleDistribution
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.Jump to the Parallel Colt Homepage