public class NormalRvg extends java.lang.Object implements RandomVectorGenerator
rmvnorm in package mvtnorm.| Constructor and Description |
|---|
NormalRvg(int dim)
Construct a standard multivariate Normal random vector generator.
|
NormalRvg(Vector mu,
Matrix sigma)
Construct a multivariate Normal random vector generator.
|
NormalRvg(Vector mu,
Matrix sigma,
RandomLongGenerator uniform,
double epsilon)
Construct a multivariate Normal random vector generator.
|
| 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 NormalRvg(Vector mu, Matrix sigma, RandomLongGenerator uniform, double epsilon)
mu - the meansigma - the covariance matrixuniform - a uniform random number generatorepsilon - a precision parameter: when a number |x| ≤ ε, it is considered 0public NormalRvg(Vector mu, Matrix sigma)
mu - the meansigma - the covariance matrixpublic NormalRvg(int dim)
dim - the dimensionpublic void seed(long... seeds)
RandomVectorGeneratorseed in interface RandomVectorGeneratorseeds - the seedspublic double[] nextVector()
RandomVectorGeneratornextVector in interface RandomVectorGenerator