public class ConvolutionVariate extends RandomVariateBase
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Logger |
log |
private RandomVariate[] |
rv
The array of RandomVariates that are summed.
|
rng
Constructor and Description |
---|
ConvolutionVariate()
Creates a new instance of ConvolutionVariate.
|
Modifier and Type | Method and Description |
---|---|
double |
generate()
Generates the next value, which is the sum of the values of the
underlying RandomVariate instances.
|
java.lang.Object[] |
getParameters()
Returns a single element Object array that contains a clone of the
RandomVariate array.
|
RandomVariate[] |
getRandomVariates()
Gets a clone of the array of RandomVariates.
|
void |
setParameters(java.lang.Object... params)
Sets the underlying RandomVariates.
|
void |
setRandomNumber(RandomNumber rand)
Sets the supporting RandomNumber of each underlying RandomVariate.
|
void |
setRandomVariates(RandomVariate[] rand)
Sets the array of RandomVariates.
|
java.lang.String |
toString()
Return a String containing information about the underlying
RandomVariates.
|
getRandomNumber
public static final java.util.logging.Logger log
private RandomVariate[] rv
public ConvolutionVariate()
public double generate()
public java.lang.Object[] getParameters()
public void setParameters(java.lang.Object... params)
params
- A single element array containing an array of
RandomVariates.java.lang.IllegalArgumentException
- If obj is length 0java.lang.IllegalArgumentException
- if any elements of obj are not
RandomVariatespublic void setRandomVariates(RandomVariate[] rand)
rand
- Array of RandomVariate[] instancespublic RandomVariate[] getRandomVariates()
public void setRandomNumber(RandomNumber rand)
setRandomNumber
in interface RandomVariate
setRandomNumber
in class RandomVariateBase
rand
- given RandomNumberpublic java.lang.String toString()
toString
in class java.lang.Object