SSJ  3.2.1
Stochastic Simulation in Java
Public Member Functions | List of all members
CachedPointSet.CachedPointSetIterator Class Reference
Inheritance diagram for CachedPointSet.CachedPointSetIterator:
[legend]
Collaboration diagram for CachedPointSet.CachedPointSetIterator:
[legend]

Public Member Functions

double nextCoordinate ()
 Returns the current coordinate \(u_{i,j}\) and advances to the next one. More...
 
void nextCoordinates (double p[], int d)
 
- Public Member Functions inherited from PointSet.DefaultPointSetIterator
void setCurCoordIndex (int j)
 Sets the current coordinate index to \(j\), so that the next calls to nextCoordinate or #nextCoordinates will return the values \(u_{i,j}, u_{i,j+1}, …\), where \(i\) is the index of the current point. More...
 
void resetCurCoordIndex ()
 Equivalent to setCurCoordIndex(0).
 
int getCurCoordIndex ()
 Returns the index \(j\) of the current coordinate. More...
 
boolean hasNextCoordinate ()
 Returns true if the current point has another coordinate. More...
 
double nextCoordinate ()
 Returns the current coordinate \(u_{i,j}\) and advances to the next one. More...
 
void nextCoordinates (double p[], int d)
 
void setCurPointIndex (int i)
 Resets the current point index to \(i\) and the current coordinate index to zero. More...
 
void resetCurPointIndex ()
 Equivalent to setCurPointIndex(0).
 
int resetToNextPoint ()
 Increases the current point index by 1 and returns its new value. More...
 
int getCurPointIndex ()
 Returns the index \(i\) of the current point. More...
 
boolean hasNextPoint ()
 Returns true if there is a next point. More...
 
int nextPoint (double p[], int fromDim, int d)
 
int nextPoint (double p[], int d)
 
void resetStartStream ()
 Reinitializes the stream to its initial state \(I_g\): \(C_g\) and \(B_g\) are set to \(I_g\).
 
void resetStartSubstream ()
 Reinitializes the stream to the beginning of its current substream: \(C_g\) is set to \(B_g\).
 
void resetNextSubstream ()
 Reinitializes the stream to the beginning of its next substream: \(N_g\) is computed, and \(C_g\) and \(B_g\) are set to \(N_g\).
 
void setAntithetic (boolean b)
 
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. More...
 
void nextArrayOfDouble (double[] u, int start, int n)
 Generates n (pseudo)random numbers from the uniform distribution and stores them into the array u starting at index start. More...
 
int nextInt (int i, int j)
 Returns a (pseudo)random number from the discrete uniform distribution over the integers \(\{i,i+1,…,j\}\), using this stream. More...
 
void nextArrayOfInt (int i, int j, int[] u, int start, int n)
 Generates n (pseudo)random numbers from the discrete uniform distribution over the integers \(\{i,i+1,…,j\}\), using this stream and stores the result in the array u starting at index start. More...
 
String formatState ()
 
- Public Member Functions inherited from PointSetIterator
void nextCoordinates (double[] p, int d)
 Returns the next d coordinates of the current point in p and advances the current coordinate index by d. More...
 
int nextPoint (double[] p, int fromDim, int d)
 Returns in p the next d coordinates of the current point, starting at coordinate fromDim (i.e., after skipping fromDim coordinates), then advances to the next point and returns the index of the new current point. More...
 
int nextPoint (double[] p, int d)
 Same as nextPoint(p, 0, d).
 
- Public Member Functions inherited from RandomStream
String toString ()
 Returns a string containing the current state of this stream. More...
 

Additional Inherited Members

- Protected Member Functions inherited from PointSet.DefaultPointSetIterator
void outOfBounds ()
 
- Protected Attributes inherited from PointSet.DefaultPointSetIterator
int curPointIndex = 0
 
int curCoordIndex = 0
 
double EpsilonHalf = 1.0 / Num.TWOEXP[55]
 

Member Function Documentation

◆ nextCoordinate()

double nextCoordinate ( )

Returns the current coordinate \(u_{i,j}\) and advances to the next one.

If no current coordinate is available (either because the current point index has reached the number of points or because the current coordinate index has reached the number of dimensions), it throws a NoSuchElementException.

Returns
value of the current coordinate
Exceptions
NoSuchElementExceptionif no such coordinate is available

Implements PointSetIterator.


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