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 static ExponentialPower |
shared |
protected double |
tau |
randomGenerator
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, getRandomGenerator, makeDefaultGenerator, nextInt, setRandomGenerator
protected double tau
protected static ExponentialPower shared
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.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.