public class ExponentialTransform extends java.lang.Object implements RandomVariate
Modifier and Type | Field and Description |
---|---|
private static java.util.logging.Logger |
LOGGER |
private RandomVariate |
rv
An instance of the underlying RandomVariate.
|
Constructor and Description |
---|
ExponentialTransform()
Constructs a new ExponentialTransform
|
Modifier and Type | Method and Description |
---|---|
double |
generate()
Generates the next exponentially transformed value.
|
java.lang.Object[] |
getParameters()
Gets the parameters of the underlying RandomVariate.
|
RandomNumber |
getRandomNumber()
Returns the instance of the supporting RandomNumber of the underlying
RandomVariate.
|
RandomVariate |
getRandomVariate() |
void |
setParameters(java.lang.Object... params)
Sets the parameters of the underlying RandomVariate.
|
void |
setRandomNumber(RandomNumber rng)
Sets the supporting RandomNumber of the underlying RandomVariate.
|
void |
setRandomVariate(RandomVariate randVar) |
java.lang.String |
toString()
The form is "Exp { RandomVariate's toString() }"
|
private static final java.util.logging.Logger LOGGER
private RandomVariate rv
public ExponentialTransform()
public double generate()
generate
in interface RandomVariate
public void setRandomVariate(RandomVariate randVar)
randVar
- Underlying RandomVariate that will be transformedpublic RandomVariate getRandomVariate()
public java.lang.Object[] getParameters()
getParameters
in interface RandomVariate
public void setParameters(java.lang.Object... params)
setParameters
in interface RandomVariate
params
- the array of parameters, wrapped in objects.public RandomNumber getRandomNumber()
getRandomNumber
in interface RandomVariate
public void setRandomNumber(RandomNumber rng)
setRandomNumber
in interface RandomVariate
rng
- The RandomNumber instance supporting the generating algorithmpublic java.lang.String toString()
toString
in class java.lang.Object