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.
|
java.lang.String |
toString()
Returns a String representation of the receiver.
|
apply, apply, clone, makeDefaultGenerator, nextIntpublic ExponentialPower(double tau,
RandomEngine randomGenerator)
java.lang.IllegalArgumentException - if tau < 1.0.public double nextDouble()
nextDouble in class AbstractDistributionpublic double nextDouble(double tau)
java.lang.IllegalArgumentException - if tau < 1.0.public void setState(double tau)
java.lang.IllegalArgumentException - if tau < 1.0.public static double staticNextDouble(double tau)
java.lang.IllegalArgumentException - if tau < 1.0.public java.lang.String toString()
toString in class java.lang.ObjectJump to the Colt Homepage