public abstract class MultivariateRandomGenerator extends Object
MRGParams
.MRGParams
Constructor and Description |
---|
MultivariateRandomGenerator() |
Modifier and Type | Method and Description |
---|---|
abstract void |
generate(double[] d,
int start,
int n,
MRGParams p)
Generates a
n -dimensional random array as part of the array
d beginning at start . |
double[] |
generate(int n,
MRGParams p)
Generates a
n -dimensional random array. |
public double[] generate(int n, MRGParams p) throws ClassCastException, IllegalArgumentException
n
-dimensional random array.n
- the dimension of the random arrayp
- the parameter of the underlying distributionn
-dimensional random arrayClassCastException
- if the object p
could not be parsed to the
correct subclassIllegalArgumentException
- if an argument is not correctgenerate(double[], int, int, MRGParams)
public abstract void generate(double[] d, int start, int n, MRGParams p) throws ClassCastException, IllegalArgumentException
n
-dimensional random array as part of the array
d
beginning at start
.d
- the arraystart
- the start index for generated valuesn
- the dimension of the random arrayp
- the parameter of the underlying distributionClassCastException
- if the object p
could not be parsed to the
correct subclassIllegalArgumentException
- if an argument is not correct