Class IID
- java.lang.Object
-
- dev.nm.stat.random.rng.multivariate.IID
-
- All Implemented Interfaces:
RandomVectorGenerator,Seedable
public class IID extends Object implements RandomVectorGenerator
An i.i.d. random vector has elements drawn from the same distribution.
-
-
Constructor Summary
Constructors Constructor Description IID(RandomNumberGenerator rng, int length)Construct a rvg that outputs vectors that have i.i.d.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]nextVector()Gets the next random vector.voidseed(long... seeds)Seed the random number/vector/scenario generator to produce repeatable experiments.
-
-
-
Constructor Detail
-
IID
public IID(RandomNumberGenerator rng, int length)
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 Detail
-
seed
public void seed(long... seeds)
Description copied from interface:SeedableSeed the random number/vector/scenario generator to produce repeatable experiments.
-
nextVector
public double[] nextVector()
Description copied from interface:RandomVectorGeneratorGets the next random vector.- Specified by:
nextVectorin interfaceRandomVectorGenerator- Returns:
- the next random vector
-
-