|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.hups.CycleBasedPointSet.CycleBasedPointSetIterator
public class CycleBasedPointSet.CycleBasedPointSetIterator
Constructor Summary | |
---|---|
CycleBasedPointSet.CycleBasedPointSetIterator()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface umontreal.iro.lecuyer.rng.RandomStream |
---|
toString |
Constructor Detail |
---|
public CycleBasedPointSet.CycleBasedPointSetIterator()
Method Detail |
---|
public void resetCurCycle(int index)
public void setCurCoordIndex(int i)
PointSetIterator
nextCoordinate
or nextCoordinates
will return the values
ui, j, ui, j+1,..., where i is the
index of the current point.
setCurCoordIndex
in interface PointSetIterator
i
- index of the new current coordinatepublic void resetCurCoordIndex()
PointSetIterator
setCurCoordIndex
(0).
resetCurCoordIndex
in interface PointSetIterator
public boolean hasNextCoordinate()
PointSetIterator
hasNextCoordinate
in interface PointSetIterator
public double nextDouble()
RandomStream
nextDouble
in interface RandomStream
public double nextCoordinate()
PointSetIterator
NoSuchElementException
.
nextCoordinate
in interface PointSetIterator
public void nextCoordinates(double[] p, int dim)
PointSetIterator
nextCoordinate
.
nextCoordinates
in interface PointSetIterator
p
- array to be filled with the coordinates, starting at index 0dim
- number of coordinates to getpublic void setCurPointIndex(int i)
PointSetIterator
setCurPointIndex
in interface PointSetIterator
i
- new index of the current pointpublic void resetCurPointIndex()
PointSetIterator
setCurPointIndex
(0).
resetCurPointIndex
in interface PointSetIterator
public int resetToNextPoint()
PointSetIterator
resetToNextPoint
in interface PointSetIterator
public int nextPoint(double[] p, int dim)
PointSetIterator
Specialized 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 PointSetIterator
p
- array to be filled with the coordinates,
starting from array index 0dim
- number of coordinates to return
public String formatState()
|
SSJ V. 2.6. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |