SuanShu, a Java numerical and statistical library

com.numericalmethod.suanshu.stats.random.multivariate
Class IID

java.lang.Object
  extended by com.numericalmethod.suanshu.stats.random.multivariate.IID
All Implemented Interfaces:
RandomVectorGenerator

public class IID
extends java.lang.Object
implements RandomVectorGenerator

Generate a random vector of which the elements are i.i.d. drawn from the same distribution.


Constructor Summary
IID(RandomNumberGenerator rng, int length)
           
 
Method Summary
 double[] nextVector()
          Get the next random vector.
 void seed(long... seeds)
          Seed the random number generator to produce repeatable sequences.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IID

public IID(RandomNumberGenerator rng,
           int length)
Method Detail

seed

public void seed(long... seeds)
Description copied from interface: RandomVectorGenerator
Seed the random number generator to produce repeatable sequences.

Specified by:
seed in interface RandomVectorGenerator
Parameters:
seeds - the seeds

nextVector

public double[] nextVector()
Description copied from interface: RandomVectorGenerator
Get the next random vector.

Specified by:
nextVector in interface RandomVectorGenerator
Returns:
the next random vector

SuanShu, a Java numerical and statistical library

Copyright © 2011 Numerical Method Inc. Ltd. All Rights Reserved.