24package umontreal.ssj.hups;
26import umontreal.ssj.rng.RandomStream;
75 for (
int j = 0; j <
dim; j++) {
95 for (
int j = 0; j <
dim; j++) {
98 delta[j] = 1.0 / (double) k;
112 int[] current =
new int[
dim];
114 for (
int j = 0; j <
dim; j++)
118 for (
int j = 0; j <
dim; j++)
121 for (
int l = 0; l <
dim; l++) {
123 if (current[l] >=
numDiv[l])
149 return "StratifiedUnitCube: stratified point set over the unit cube in " +
dim +
"dimensions.";
int numPoints
Number of points.
int dim
Dimension of the points.
double[] delta
Size of divisions in each dimension, delta[j] = 1/numDiv[j].
void randomize(RandomStream stream)
This randomization generates one point randomly in its corresponding box, for each of the boxes.
int[] numDiv
Number of divisions in each dimension, numDiv[j] for coordinate j.
StratifiedUnitCube(int k, int dim)
Same as StratifiedUnitCube (int[] k, int dim) with all coordinates of the vector k equal to the integ...
void addRandomShift(int fromDim, int toDim, RandomStream stream)
Random shifts and partial randomizations are irrelevant here, so this method is redefined to be equiv...
void randomize(PointSetRandomization rand)
Randomizes the points using stratification, regardless of what rand is.
StratifiedUnitCube(int[] k, int dim)
Builds a stratified points set in dim dimensions, with k[j] intervals in dimension j.
String toString()
Formats a string that contains information about the point set.
This interface is for a randomization that can be used to randomize a umontreal.ssj....
RandomStream getStream()
Returns the internal umontreal.ssj.rng.RandomStream.
This interface defines the basic structures to handle multiple streams of uniform (pseudo)random numb...
double nextDouble()
Returns a (pseudo)random number from the uniform distribution over the interval , using this stream,...