24package umontreal.ssj.hups;
26import umontreal.ssj.rng.RandomStream;
27import umontreal.ssj.rng.*;
49 protected double delta;
81 for (
int j = 1; j <
dim; j++) {
85 x[permutation[i]][j] = (i + stream.
nextDouble()) * delta;
107 return "LatinHypercube: LHS over the unit cube in " +
dim +
"dimensions.";
void randomize(RandomStream stream)
This randomization generates a random LHS point set.
LatinHypercube(int n, int dim)
Constructs the structure for a Latin hypercube with n points in dim dimensions.
String toString()
Formats a string that contains information about the point set.
void randomize(PointSetRandomization rand)
Randomizes the points using LHS, regardless of what rand is.
void addRandomShift(int fromDim, int toDim, RandomStream stream)
Random shifts and partial randomizations are irrelevant here, so this method is redefined to be equiv...
int numPoints
Number of points.
int dim
Dimension of the points.
Provides methods to randomly shuffle arrays or lists using a random stream.
static void shuffle(List<?> list, RandomStream stream)
Same as java.util.Collections.shuffle(List<?
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,...