public class IID extends java.lang.Object implements RandomVectorGenerator
| Constructor and Description |
|---|
IID(RandomNumberGenerator rng,
int length)
Construct a rvg that outputs vectors that have i.i.d.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
nextVector()
Get the next random vector.
|
void |
seed(long... seeds)
Seed the random vector generator to produce repeatable sequences.
|
public IID(RandomNumberGenerator rng, int length)
rng - the underlying (univariate) random number generatorlength - the length of the output vectorspublic void seed(long... seeds)
RandomVectorGeneratorseed in interface RandomVectorGeneratorseeds - the seedspublic double[] nextVector()
RandomVectorGeneratornextVector in interface RandomVectorGenerator