Class ThinRVG
java.lang.Object
dev.nm.stat.random.rng.multivariate.ThinRVG
- All Implemented Interfaces:
RandomVectorGenerator
,Seedable
Thinning is a scheme that returns every m-th item, discarding the last m-1 items for each draw.
This usually helps reduce serial correlation.
-
Constructor Summary
Constructors -
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
-
ThinRVG
Constructs a thinned RVG.- Parameters:
rvg
- an underlying RVGm
- the number of items to draw from the underlying RVG for each draw
-
-
Method Details
-
nextVector
public double[] nextVector()Description copied from interface:RandomVectorGenerator
Gets the next random vector.- Specified by:
nextVector
in interfaceRandomVectorGenerator
- Returns:
- the next random vector
-
seed
public void seed(long... seeds) Description copied from interface:Seedable
Seed the random number/vector/scenario generator to produce repeatable experiments.
-