public class CycleBasedPointSet.CycleBasedPointSetIterator
extends java.lang.Object
| Constructor and Description |
|---|
CycleBasedPointSet.CycleBasedPointSetIterator() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
formatState() |
boolean |
hasNextCoordinate()
Returns true if the current point has another coordinate.
|
double |
nextCoordinate()
Returns the current coordinate ui, j and advances to the next one.
|
void |
nextCoordinates(double[] p,
int dim)
Returns the next d coordinates of the current point in p
and advances the current coordinate index by d.
|
double |
nextDouble()
Returns a (pseudo)random number from the uniform distribution
over the interval (0, 1), using this stream, after advancing its
state by one step.
|
int |
nextPoint(double[] p,
int dim)
Returns the first d coordinates of the current
point in p, advances to the next point, and
returns the index of the new current point.
|
void |
resetCurCoordIndex()
Equivalent to
setCurCoordIndex (0). |
void |
resetCurCycle(int index) |
void |
resetCurPointIndex()
Equivalent to
setCurPointIndex (0). |
int |
resetToNextPoint()
Increases the current point index by 1 and returns its new value.
|
void |
setCurCoordIndex(int i)
Sets the current coordinate index to j, so that
the next calls to
nextCoordinate or nextCoordinates
will return the values
ui, j, ui, j+1,..., where i is the
index of the current point. |
void |
setCurPointIndex(int i)
Resets the current point index to i and the current coordinate
index to zero.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringpublic CycleBasedPointSet.CycleBasedPointSetIterator()
public void resetCurCycle(int index)
public void setCurCoordIndex(int i)
PointSetIteratornextCoordinate or nextCoordinates
will return the values
ui, j, ui, j+1,..., where i is the
index of the current point.setCurCoordIndex in interface PointSetIteratori - index of the new current coordinatepublic void resetCurCoordIndex()
PointSetIteratorsetCurCoordIndex (0).resetCurCoordIndex in interface PointSetIteratorpublic boolean hasNextCoordinate()
PointSetIteratorhasNextCoordinate in interface PointSetIteratorpublic double nextDouble()
RandomStreamnextDouble in interface RandomStreampublic double nextCoordinate()
PointSetIteratorNoSuchElementException.nextCoordinate in interface PointSetIteratorpublic void nextCoordinates(double[] p,
int dim)
PointSetIteratornextCoordinate.nextCoordinates in interface PointSetIteratorp - array to be filled with the coordinates, starting at index 0dim - number of coordinates to getpublic void setCurPointIndex(int i)
PointSetIteratorsetCurPointIndex in interface PointSetIteratori - new index of the current pointpublic void resetCurPointIndex()
PointSetIteratorsetCurPointIndex (0).resetCurPointIndex in interface PointSetIteratorpublic int resetToNextPoint()
PointSetIteratorresetToNextPoint in interface PointSetIteratorpublic int nextPoint(double[] p,
int dim)
PointSetIteratorSpecialized implementations of this method often allow for increased efficiency, e.g., for cycle-based point sets where the cycles (but not the points) are stored explicitly or for digital nets by allowing non-incremental point enumerations via Gray-code counters.
nextPoint in interface PointSetIteratorp - array to be filled with the coordinates,
starting from array index 0dim - number of coordinates to returnpublic java.lang.String formatState()
To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.