public abstract class CycleBasedPointSet extends PointSet
This structure is convenient for implementing recurrence-based point sets, where the point set in s dimensions is defined as the set of all vectors of s successive values of a periodic recurrence, from all its possible initial states.
| Modifier and Type | Class and Description |
|---|---|
class |
CycleBasedPointSet.CycleBasedPointSetIterator |
| Constructor and Description |
|---|
CycleBasedPointSet() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRandomShift(int d1,
int d2,
RandomStream stream)
Adds a random shift to all the points
of the point set, using stream stream to generate the random numbers,
for coordinates d1 to d2 - 1.
|
void |
clearRandomShift()
Erases the current random shift, if any.
|
java.lang.String |
formatPoints()
Same as invoking
formatPoints(n, d) with n and d equal to the
number of points and the dimension of this object, respectively. |
double |
getCoordinate(int i,
int j)
Returns ui, j, the coordinate j of the point i.
|
int |
getDimension()
Returns the dimension (number of available coordinates) of the point set.
|
PointSetIterator |
iterator()
Constructs and returns a point set iterator.
|
java.lang.String |
toString()
Formats a string that contains information about the point set.
|
addRandomShift, addRandomShift, addRandomShift, formatPoints, formatPoints, formatPoints, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsBase, formatPointsNumbered, formatPointsNumbered, getNumPoints, getStream, randomize, randomize, randomize, randomize, randomize, setStream, unrandomizepublic double getCoordinate(int i,
int j)
PointSetgetCoordinate in class PointSeti - index of the point to look forj - index of the coordinate to look forpublic void addRandomShift(int d1,
int d2,
RandomStream stream)
addRandomShift in class PointSetstream - Stream used to generate random numberspublic void clearRandomShift()
PointSetclearRandomShift in class PointSetpublic int getDimension()
PointSetgetDimension in class PointSetpublic PointSetIterator iterator()
PointSetgetCoordinate (i,j) to iterate over the
points and coordinates, but subclasses can reimplement it
for better efficiency.public java.lang.String toString()
PointSetpublic java.lang.String formatPoints()
PointSetformatPoints(n, d) with n and d equal to the
number of points and the dimension of this object, respectively.formatPoints in class PointSetTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.