Class IID
java.lang.Object
dev.nm.stat.random.rng.multivariate.IID
- All Implemented Interfaces:
RandomVectorGenerator
,Seedable
An i.i.d. random vector has elements drawn from the same distribution.
-
Constructor Summary
ConstructorsConstructorDescriptionIID
(RandomNumberGenerator rng, int length) Construct a rvg that outputs vectors that have i.i.d. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]
Gets the next random vector.void
seed
(long... seeds) Seed the random number/vector/scenario generator to produce repeatable experiments.
-
Constructor Details
-
IID
Construct a rvg that outputs vectors that have i.i.d. elements drawn from the same distribution.- Parameters:
rng
- the underlying (univariate) random number generatorlength
- the length of the output vectors
-
-
Method Details
-
seed
public void seed(long... seeds) Description copied from interface:Seedable
Seed the random number/vector/scenario generator to produce repeatable experiments. -
nextVector
public double[] nextVector()Description copied from interface:RandomVectorGenerator
Gets the next random vector.- Specified by:
nextVector
in interfaceRandomVectorGenerator
- Returns:
- the next random vector
-