public class DirichletMRG extends MultivariateRandomGenerator
Modifier and Type | Field and Description |
---|---|
static DirichletMRG |
DEFAULT_INSTANCE
This instance shall be used, since quite often two instance of this class
return the same values.
|
Modifier and Type | Method and Description |
---|---|
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 . |
void |
generateLog(double[] d,
int start,
int n,
MRGParams p)
Fills a part of the array
d beginning at start with n logarithmic values. |
generate
public static final DirichletMRG DEFAULT_INSTANCE
public void generate(double[] d, int start, int n, MRGParams p)
MultivariateRandomGenerator
n
-dimensional random array as part of the array
d
beginning at start
.generate
in class MultivariateRandomGenerator
d
- the arraystart
- the start index for generated valuesn
- the dimension of the random arrayp
- the parameter of the underlying distributionpublic void generateLog(double[] d, int start, int n, MRGParams p)
d
beginning at start
with n
logarithmic values.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 correctDiMRGParams
,
generate(double[], int, int, MRGParams)