SSJ
V. 2.6.2.

umontreal.iro.lecuyer.randvarmulti
Class IIDMultivariateGen

java.lang.Object
  extended by umontreal.iro.lecuyer.randvarmulti.RandomMultivariateGen
      extended by umontreal.iro.lecuyer.randvarmulti.IIDMultivariateGen

public class IIDMultivariateGen
extends RandomMultivariateGen

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


Constructor Summary
IIDMultivariateGen(RandomVariateGen gen1, int d)
          Constructs a generator for a d-dimensional vector of i.i.d.
 
Method Summary
 RandomVariateGen getGen1()
          Returns the common one-dimensional generator used in this class.
 void nextPoint(double[] p)
          Generates a vector of i.i.d.
 void setDimension(int d)
          Changes the dimension of the vector to d.
 void setGen1(RandomVariateGen gen1)
          Sets the common one-dimensional generator to gen1.
 String toString()
          Returns a string representation of the generator.
 
Methods inherited from class umontreal.iro.lecuyer.randvarmulti.RandomMultivariateGen
getDimension, getStream, nextArrayOfPoints, setStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IIDMultivariateGen

public 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:
gen1 - the one-dimensional generator
d - dimension of the vector (number of i.i.d. variates).
Method Detail

setDimension

public void setDimension(int d)
Changes the dimension of the vector to d.


nextPoint

public void nextPoint(double[] p)
Generates a vector of i.i.d. variates.

Specified by:
nextPoint in class RandomMultivariateGen

setGen1

public void setGen1(RandomVariateGen gen1)
Sets the common one-dimensional generator to gen1.


getGen1

public RandomVariateGen getGen1()
Returns the common one-dimensional generator used in this class.


toString

public String toString()
Returns a string representation of the generator.

Overrides:
toString in class Object

SSJ
V. 2.6.2.

To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.