public class UncorrelatedRandomVectorGenerator extends Object implements RandomVectorGenerator
RandomVectorGenerator
that generates vectors with uncorrelated components.
Components of generated vectors follow (independent) Gaussian distributions, with parameters supplied in the constructor.
Constructor and Description |
---|
UncorrelatedRandomVectorGenerator(double[] mean,
double[] standardDeviation,
NormalizedRandomGenerator generator)
Simple constructor.
|
UncorrelatedRandomVectorGenerator(int dimension,
NormalizedRandomGenerator generator)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
double[] |
nextVector()
Generate an uncorrelated random vector.
|
public UncorrelatedRandomVectorGenerator(double[] mean, double[] standardDeviation, NormalizedRandomGenerator generator)
Build an uncorrelated random vector generator from its mean and standard deviation vectors.
mean
- expected mean values for each componentstandardDeviation
- standard deviation for each componentgenerator
- underlying generator for uncorrelated normalized componentspublic UncorrelatedRandomVectorGenerator(int dimension, NormalizedRandomGenerator generator)
Build a null mean random and unit standard deviation uncorrelated vector generator.
dimension
- dimension of the vectors to generategenerator
- underlying generator for uncorrelated normalized componentspublic double[] nextVector()
nextVector
in interface RandomVectorGenerator
Copyright © 2016-2021 CS GROUP. All rights reserved.