25package umontreal.ssj.randvarmulti;
27import umontreal.ssj.randvar.RandomVariateGen;
46 this.stream = gen1.getStream();
61 if (p.length != dimension)
62 throw new IllegalArgumentException(
63 String.format(
"p's dimension (%d) does not mach dimension (%d)", p.length, dimension));
65 for (
int i = 0; i < dimension; i++)
66 p[i] = gen1.nextDouble();
74 throw new NullPointerException(
"gen1 is null");
89 return dimension +
"-dimensional vector of i.i.d. " + gen1.getDistribution().toString();
This is the base class for all random variate generators over the real line.
void setDimension(int d)
Changes the dimension of the vector to d.
String toString()
Returns a string representation of the generator.
IIDMultivariateGen(RandomVariateGen gen1, int d)
Constructs a generator for a d-dimensional vector of i.i.d.
void setGen1(RandomVariateGen gen1)
Sets the common one-dimensional generator to gen1.
RandomVariateGen getGen1()
Returns the common one-dimensional generator used in this class.
void nextPoint(double[] p)
Generates a vector of i.i.d.
This class is the multivariate counterpart of.