4546474849505152535455
public CovarianceRandomDraw( Random rand , DenseMatrix64F cov ) { r = new DenseMatrix64F(cov.numRows,1); CholeskyDecompositionInner choleky = new CholeskyDecompositionInner( true); choleky.decompose(cov); A = choleky.getT(); this.rand = rand; }
112113114115116117118119120121122
CholeskyDecompositionInner chol = new CholeskyDecompositionInner(true); if( chol.inputModified() ) A = A.copy(); return chol.decompose(A); } /** * <p> * Checks to see if the matrix is positive semidefinite: