SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
umontreal.ssj.hups.CycleBasedPointSet.CycleBasedPointSetIterator Class Reference
Inheritance diagram for umontreal.ssj.hups.CycleBasedPointSet.CycleBasedPointSetIterator:
umontreal.ssj.hups.PointSet.DefaultPointSetIterator umontreal.ssj.hups.PointSetIterator umontreal.ssj.rng.RandomStream umontreal.ssj.hups.CycleBasedPointSetBase2.CycleBasedPointSetBase2Iterator

Public Member Functions

void setCurCoordIndex (int i)
 Set current coordinate to j.
void resetCurCoordIndex ()
 Set current coordinate to 0.
boolean hasNextCoordinate ()
double nextDouble ()
 Same as nextCoordinate().
double nextCoordinate ()
void nextCoordinates (double p[], int dim)
void setCurPointIndex (int i)
 Resets the current point index to i and current coordinate to 0.
void resetCurPointIndex ()
 Resets both the current point index and the current coordinate to 0.
int resetToNextPoint ()
 Resets the current point index to the next one and current coordinate to 0, and returns the new current point index.
int nextPoint (double p[], int dim)
 Same as nextPoint(p, 0, d).
String formatState ()
Public Member Functions inherited from umontreal.ssj.hups.PointSet.DefaultPointSetIterator
int getCurCoordIndex ()
int getCurPointIndex ()
boolean hasNextPoint ()
int nextPoint (double p[], int fromDim, int d)
 Returns in p a block of d successive coordinates of the current point, starting at coordinate fromDim, and advances to the next point.
void resetStartStream ()
 Same as resetCurPointIndex().
void resetStartSubstream ()
 Same as resetCurCoordIndex().
void resetNextSubstream ()
 Same as resetToNextPoint().
void setAntithetic (boolean b)
 Not implemented here, raises an exception.
void nextArrayOfDouble (double[] u, int start, int n)
 Returns in p[start..start+n-1] a block of n successive coordinates of the current point, obtained by calling nextDouble() n times.
int nextInt (int i, int j)
 Similar to nextDouble(), but returns an integer uniformly distributed in [i..j].
void nextArrayOfInt (int i, int j, int[] u, int start, int n)
 Similar to nextArrayOfDouble but returns in u[start..start+n-1] a block of n integers uniformly distributed in [i..j].
Public Member Functions inherited from umontreal.ssj.rng.RandomStream
String toString ()
 Returns a string containing the current state of this stream.

Additional Inherited Members

Protected Member Functions inherited from umontreal.ssj.hups.PointSet.DefaultPointSetIterator
void outOfBounds ()
 Error message for index out of bounds.
Protected Attributes inherited from umontreal.ssj.hups.PointSet.DefaultPointSetIterator
int curPointIndex = 0
 Index of the current point.
int curCoordIndex = 0
 Index of the current coordinate.
double EpsilonHalf = 1.0 / Num.TWOEXP[55]
 Default constant epsilon/2 added to the points after a random shift.

Detailed Description

Definition at line 157 of file CycleBasedPointSet.java.

Member Function Documentation

◆ formatState()

String umontreal.ssj.hups.CycleBasedPointSet.CycleBasedPointSetIterator.formatState ( )
Returns
a printable String that gives the current point index and current coordinate index.

Reimplemented from umontreal.ssj.hups.PointSet.DefaultPointSetIterator.

Definition at line 297 of file CycleBasedPointSet.java.

◆ hasNextCoordinate()

boolean umontreal.ssj.hups.CycleBasedPointSet.CycleBasedPointSetIterator.hasNextCoordinate ( )
Returns
true of the current point has another coordinate available.

Reimplemented from umontreal.ssj.hups.PointSet.DefaultPointSetIterator.

Definition at line 191 of file CycleBasedPointSet.java.

◆ nextCoordinate()

double umontreal.ssj.hups.CycleBasedPointSet.CycleBasedPointSetIterator.nextCoordinate ( )

◆ nextCoordinates()

void umontreal.ssj.hups.CycleBasedPointSet.CycleBasedPointSetIterator.nextCoordinates ( double p[],
int d )
Returns
in p the d next coordinates

Reimplemented from umontreal.ssj.hups.PointSet.DefaultPointSetIterator.

Reimplemented in umontreal.ssj.hups.CycleBasedPointSetBase2.CycleBasedPointSetBase2Iterator.

Definition at line 221 of file CycleBasedPointSet.java.

◆ nextDouble()

double umontreal.ssj.hups.CycleBasedPointSet.CycleBasedPointSetIterator.nextDouble ( )

Same as nextCoordinate().

Reimplemented from umontreal.ssj.hups.PointSet.DefaultPointSetIterator.

Definition at line 196 of file CycleBasedPointSet.java.

◆ nextPoint()

int umontreal.ssj.hups.CycleBasedPointSet.CycleBasedPointSetIterator.nextPoint ( double p[],
int d )

◆ resetCurCoordIndex()

void umontreal.ssj.hups.CycleBasedPointSet.CycleBasedPointSetIterator.resetCurCoordIndex ( )

Set current coordinate to 0.

Reimplemented from umontreal.ssj.hups.PointSet.DefaultPointSetIterator.

Definition at line 186 of file CycleBasedPointSet.java.

◆ resetCurPointIndex()

void umontreal.ssj.hups.CycleBasedPointSet.CycleBasedPointSetIterator.resetCurPointIndex ( )

Resets both the current point index and the current coordinate to 0.

Reimplemented from umontreal.ssj.hups.PointSet.DefaultPointSetIterator.

Definition at line 259 of file CycleBasedPointSet.java.

◆ resetToNextPoint()

int umontreal.ssj.hups.CycleBasedPointSet.CycleBasedPointSetIterator.resetToNextPoint ( )

Resets the current point index to the next one and current coordinate to 0, and returns the new current point index.

Reimplemented from umontreal.ssj.hups.PointSet.DefaultPointSetIterator.

Definition at line 267 of file CycleBasedPointSet.java.

◆ setCurCoordIndex()

void umontreal.ssj.hups.CycleBasedPointSet.CycleBasedPointSetIterator.setCurCoordIndex ( int j)

Set current coordinate to j.

Reimplemented from umontreal.ssj.hups.PointSet.DefaultPointSetIterator.

Definition at line 181 of file CycleBasedPointSet.java.

◆ setCurPointIndex()

void umontreal.ssj.hups.CycleBasedPointSet.CycleBasedPointSetIterator.setCurPointIndex ( int i)

Resets the current point index to i and current coordinate to 0.

Reimplemented from umontreal.ssj.hups.PointSet.DefaultPointSetIterator.

Definition at line 246 of file CycleBasedPointSet.java.


The documentation for this class was generated from the following file: