umontreal.iro.lecuyer.randvarmulti
Class IIDMultivariateGen
- java.lang.Object
-
- umontreal.iro.lecuyer.randvarmulti.RandomMultivariateGen
-
- umontreal.iro.lecuyer.randvarmulti.IIDMultivariateGen
-
public class IIDMultivariateGen extends RandomMultivariateGen
ExtendsRandomMultivariateGenfor a vector of independent identically distributed (i.i.d.) random variables.
-
-
Constructor Summary
Constructors Constructor and Description IIDMultivariateGen(RandomVariateGen gen1, int d)Constructs a generator for a d-dimensional vector of i.i.d.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description RandomVariateGengetGen1()Returns the common one-dimensional generator used in this class.voidnextPoint(double[] p)Generates a vector of i.i.d.voidsetDimension(int d)Changes the dimension of the vector to d.voidsetGen1(RandomVariateGen gen1)Sets the common one-dimensional generator to gen1.java.lang.StringtoString()Returns a string representation of the generator.-
Methods inherited from class umontreal.iro.lecuyer.randvarmulti.RandomMultivariateGen
getDimension, getStream, nextArrayOfPoints, setStream
-
-
-
-
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 generatord- 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:
nextPointin classRandomMultivariateGen
-
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 java.lang.String toString()
Returns a string representation of the generator.- Overrides:
toStringin classjava.lang.Object
-
-
DMelt 3.0 © DataMelt by jWork.ORG