public abstract class ContainerPointSet extends PointSet
AntitheticPointSet,
where each output coordinate ui, j is transformed into 1 - ui, j.
Another example is RandShiftedPointSet.
The class implements a specialized type of iterator for container point sets. This type of iterator contains itself an iterator for the containee and uses it to access the points and coordinates internally, instead of maintaining itself indices for the current point and current coordinate.
| Constructor and Description |
|---|
ContainerPointSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRandomShift(int d1,
int d2,
RandomStream stream)
Calls addRandomShift(d1, d2, stream) of the contained point set.
|
void |
addRandomShift(RandomStream stream)
Calls addRandomShift(stream) of the contained point set.
|
void |
clearRandomShift()
Calls clearRandomShift() of the contained point set.
|
double |
getCoordinate(int i,
int j)
Returns ui, j, the coordinate j of the point i.
|
int |
getDimension()
Returns the dimension of the contained point set.
|
int |
getNumPoints()
Returns the number of points of the contained point set.
|
PointSetIterator |
iterator()
Constructs and returns a point set iterator.
|
void |
randomize(PointSetRandomization rand)
Randomizes the contained point set using rand.
|
java.lang.String |
toString()
Formats a string that contains information about the point set.
|
addRandomShift, addRandomShift, formatPoints, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getStream, randomize, randomize, randomize, randomize, setStream, unrandomizepublic int getDimension()
getDimension in class PointSetpublic int getNumPoints()
getNumPoints in class PointSetpublic double getCoordinate(int i,
int j)
PointSetgetCoordinate in class PointSeti - index of the point to look forj - index of the coordinate to look forpublic PointSetIterator iterator()
PointSetgetCoordinate (i,j) to iterate over the
points and coordinates, but subclasses can reimplement it
for better efficiency.public void randomize(PointSetRandomization rand)
randomize in class PointSetrand - PointSetRandomization to usepublic void addRandomShift(int d1,
int d2,
RandomStream stream)
addRandomShift in class PointSetd1 - lower dimension of the random shiftd2 - upper dimension of the random shiftstream - the random streampublic void addRandomShift(RandomStream stream)
addRandomShift in class PointSetstream - the random streampublic void clearRandomShift()
clearRandomShift in class PointSetTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.