SSJ  3.3.1
Stochastic Simulation in Java
Public Member Functions | List of all members
IIDMultivariateGen Class Reference

Extends RandomMultivariateGen for a vector of independent identically distributed (i.i.d.) random variables. More...

Inheritance diagram for IIDMultivariateGen:
[legend]
Collaboration diagram for IIDMultivariateGen:
[legend]

Public Member Functions

 IIDMultivariateGen (RandomVariateGen gen1, int d)
 Constructs a generator for a d-dimensional vector of i.i.d. More...
 
void setDimension (int d)
 Changes the dimension of the vector to d.
 
void nextPoint (double[] p)
 Generates a vector of i.i.d. More...
 
void setGen1 (RandomVariateGen gen1)
 Sets the common one-dimensional generator to gen1.
 
RandomVariateGen getGen1 ()
 Returns the common one-dimensional generator used in this class.
 
String toString ()
 Returns a string representation of the generator.
 
- Public Member Functions inherited from RandomMultivariateGen
abstract void nextPoint (double[] p)
 Generates a random point \(p\) using the the stream contained in this object.
 
void nextArrayOfPoints (double[][] v, int start, int n)
 Generates \(n\) random points. More...
 
int getDimension ()
 Returns the dimension of this multivariate generator (the dimension of the random points).
 
RandomStream getStream ()
 Returns the umontreal.ssj.rng.RandomStream used by this object. More...
 
void setStream (RandomStream stream)
 Sets the umontreal.ssj.rng.RandomStream used by this object to stream.
 

Additional Inherited Members

- Protected Attributes inherited from RandomMultivariateGen
int dimension
 
RandomStream stream
 
RandomVariateGen gen1
 

Detailed Description

Extends RandomMultivariateGen for a vector of independent identically distributed (i.i.d.) random variables.

Constructor & Destructor Documentation

◆ IIDMultivariateGen()

IIDMultivariateGen ( RandomVariateGen  gen1,
int  d 
)

Constructs a generator for a d-dimensional vector of i.i.d.

variates with a common one-dimensional generator gen1.

Parameters
gen1the one-dimensional generator
ddimension of the vector (number of i.i.d. variates).

Member Function Documentation

◆ nextPoint()

void nextPoint ( double []  p)

Generates a vector of i.i.d.

variates.


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