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.
Modifier and Type | Field and Description |
---|---|
protected double |
tau |
randomGenerator
Constructor and Description |
---|
ExponentialPower(double tau,
MersenneTwisterFast 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.
|
java.lang.String |
toString()
Returns a String representation of the receiver.
|
apply, apply, getRandomGenerator, nextInt, setRandomGenerator
public ExponentialPower(double tau, MersenneTwisterFast randomGenerator)
java.lang.IllegalArgumentException
- if tau < 1.0.public double nextDouble()
nextDouble
in class AbstractDistribution
public double nextDouble(double tau)
java.lang.IllegalArgumentException
- if tau < 1.0.public void setState(double tau)
java.lang.IllegalArgumentException
- if tau < 1.0.public java.lang.String toString()
toString
in class java.lang.Object