if (mu.length != sigma.rows() ||
mu.length != sigma.columns())
throw new IllegalArgumentException
("Incompatible mean vector and covariance matrix dimensions");
CholeskyDecomposition decomp = new CholeskyDecomposition (sigma);
double[] temp = new double[mu.length];
DoubleMatrix2D sqrtSigma = decomp.getL();
for (int i = 0; i < temp.length; i++) {
temp[i] = gen1.nextDouble();
if (temp[i] == Double.NEGATIVE_INFINITY)
temp[i] = -MYINF;
if (temp[i] == Double.POSITIVE_INFINITY)