SSJ
3.2.1
Stochastic Simulation in Java
|
Public Member Functions | |
void | setCurPointIndex (int i) |
Resets the current point index to \(i\) and the current coordinate index to zero. More... | |
int | resetToNextPoint () |
Increases the current point index by 1 and returns its new value. More... | |
![]() | |
void | init () |
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... | |
double | nextCoordinate () |
Returns the current coordinate \(u_{i,j}\) and advances to the next one. More... | |
void | resetCurPointIndex () |
Equivalent to setCurPointIndex(0). | |
void | setCurPointIndex (int i) |
Resets the current point index to \(i\) and the current coordinate index to zero. More... | |
int | resetToNextPoint () |
Increases the current point index by 1 and returns its new value. More... | |
![]() | |
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 () |
![]() | |
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). | |
![]() | |
String | toString () |
Returns a string containing the current state of this stream. More... | |
Additional Inherited Members | |
![]() | |
void | outOfBounds () |
![]() | |
int | idigits |
int [] | bdigit |
int [] | gdigit |
int | dimS |
int [] | cachedCurPoint |
![]() | |
int | curPointIndex = 0 |
int | curCoordIndex = 0 |
double | EpsilonHalf = 1.0 / Num.TWOEXP[55] |
int resetToNextPoint | ( | ) |
Increases the current point index by 1 and returns its new value.
If there is no more point, an exception will be raised only if we ask for a new coordinate or point later on.
Implements PointSetIterator.
void setCurPointIndex | ( | int | i | ) |
Resets the current point index to \(i\) and the current coordinate index to zero.
If i
is larger or equal to the number of points, an exception will not be raised here, but only later if we ask for a new coordinate or point.
i | new index of the current point |
Implements PointSetIterator.