public class EqualParts extends MultivariateRandomGenerator
MRGParams is never used in this class.| Constructor and Description |
|---|
EqualParts() |
| Modifier and Type | Method and Description |
|---|---|
void |
generate(double[] d,
int start,
int number)
Modifies a given
number of array entries to
1/number. |
void |
generate(double[] d,
int start,
int number,
MRGParams p)
Generates a
n-dimensional random array as part of the array
d beginning at start. |
double[] |
generate(int n)
Returns an array of length
n with entries 1/n. |
generatepublic void generate(double[] d,
int start,
int number,
MRGParams p)
MultivariateRandomGeneratorn-dimensional random array as part of the array
d beginning at start.generate in class MultivariateRandomGeneratord - the arraystart - the start index for generated valuesnumber - the dimension of the random arrayp - the parameter of the underlying distributionpublic double[] generate(int n)
n with entries 1/n.n - the length of the array and the divisor for the calculation of
the equal parts as its entriesn with entries 1/ngenerate(double[], int, int)public void generate(double[] d,
int start,
int number)
number of array entries to
1/number.d - the array which will be modifiedstart - the start index of the modification of the arraynumber - the number of entries 1/number