use of dr.math.matrixAlgebra.Matrix in project beast-mcmc by beast-dev.
the class MultivariateNormalGibbsOperator method getPrecision.
private Matrix getPrecision() throws IllegalDimension {
Matrix currentPrecision = new Matrix(likelihoodPrecision.getParameterAsMatrix());
currentPrecision = currentPrecision.product(likelihood.getDataList().size());
/*
for(int i=0; i<currentPrecision.columns(); i++){
for(int j=0; j<currentPrecision.rows(); j++){
System.err.print(currentPrecision.toComponents()[i][j]);
System.err.print(" ");}
System.err.print("\n"); }
*/
return priorPrecision.add(currentPrecision);
}
Aggregations