SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
umontreal.ssj.stochprocess.InverseGaussianProcessMSH.NonRandomStream Class Reference

NonRandomStream: Given a double array, this class will return those values as if it where a random stream. More...

Inheritance diagram for umontreal.ssj.stochprocess.InverseGaussianProcessMSH.NonRandomStream:
umontreal.ssj.rng.RandomStream

Public Member Functions

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.
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.
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.
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.
void resetNextSubstream ()
 Reinitializes the stream to the beginning of its next substream:
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:
String toString ()
 Returns a string containing the current state of this stream.

Detailed Description

NonRandomStream: Given a double array, this class will return those values as if it where a random stream.

Careful: Will not hard copy the array given as input. And not checking for end of array for the time being. And not checking j>i.

Definition at line 186 of file InverseGaussianProcessMSH.java.

Member Function Documentation

◆ nextArrayOfDouble()

void umontreal.ssj.stochprocess.InverseGaussianProcessMSH.NonRandomStream.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.

Parameters
uarray that will contain the generated uniforms
startstarting index, in the array u, to write uniforms from
nnumber of uniforms to generate

Implements umontreal.ssj.rng.RandomStream.

Definition at line 204 of file InverseGaussianProcessMSH.java.

◆ nextArrayOfInt()

void umontreal.ssj.stochprocess.InverseGaussianProcessMSH.NonRandomStream.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.

(Calls nextInt n times.)

Parameters
ismallest integer that can be generated
jgreatest integer that can be generated
uarray that will contain the generated values
startstarting index, in the array u, to write integers from
nnumber of values being generated

Implements umontreal.ssj.rng.RandomStream.

Definition at line 209 of file InverseGaussianProcessMSH.java.

◆ nextDouble()

double umontreal.ssj.stochprocess.InverseGaussianProcessMSH.NonRandomStream.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.

The generators programmed in SSJ never return the values 0 or 1.

Returns
the next generated uniform

Implements umontreal.ssj.rng.RandomStream.

Definition at line 200 of file InverseGaussianProcessMSH.java.

◆ nextInt()

int umontreal.ssj.stochprocess.InverseGaussianProcessMSH.NonRandomStream.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.

(Calls nextDouble once.)

Parameters
ismallest integer that can be generated
jgreatest integer that can be generated
Returns
the generated integer

Implements umontreal.ssj.rng.RandomStream.

Definition at line 215 of file InverseGaussianProcessMSH.java.

◆ resetNextSubstream()

void umontreal.ssj.stochprocess.InverseGaussianProcessMSH.NonRandomStream.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\).

Implements umontreal.ssj.rng.RandomStream.

Definition at line 219 of file InverseGaussianProcessMSH.java.

◆ resetStartStream()

void umontreal.ssj.stochprocess.InverseGaussianProcessMSH.NonRandomStream.resetStartStream ( )

Reinitializes the stream to its initial state \(I_g\): \(C_g\) and \(B_g\) are set to \(I_g\).

Implements umontreal.ssj.rng.RandomStream.

Definition at line 222 of file InverseGaussianProcessMSH.java.

◆ resetStartSubstream()

void umontreal.ssj.stochprocess.InverseGaussianProcessMSH.NonRandomStream.resetStartSubstream ( )

Reinitializes the stream to the beginning of its current substream:

\(C_g\) is set to \(B_g\).

Implements umontreal.ssj.rng.RandomStream.

Definition at line 226 of file InverseGaussianProcessMSH.java.

◆ toString()

String umontreal.ssj.stochprocess.InverseGaussianProcessMSH.NonRandomStream.toString ( )

Returns a string containing the current state of this stream.

Returns
the state of the generator formated as a string

Implements umontreal.ssj.rng.RandomStream.

Definition at line 229 of file InverseGaussianProcessMSH.java.


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