Search in sources :

Example 1 with FactorGibbsOperator

use of dr.inference.operators.FactorGibbsOperator in project beast-mcmc by beast-dev.

the class FactorGibbsOperatorParser method parseXMLObject.

@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    String weightTemp = (String) xo.getAttribute(WEIGHT);
    double weight = Double.parseDouble(weightTemp);
    DiagonalMatrix diffusionMatrix;
    diffusionMatrix = (DiagonalMatrix) xo.getChild(DiagonalMatrix.class);
    LatentFactorModel LFM = (LatentFactorModel) xo.getChild(LatentFactorModel.class);
    boolean randomScan = xo.getAttribute(RANDOM_SCAN, true);
    return new FactorGibbsOperator(LFM, weight, randomScan, diffusionMatrix);
}
Also used : DiagonalMatrix(dr.inference.model.DiagonalMatrix) LatentFactorModel(dr.inference.model.LatentFactorModel) FactorGibbsOperator(dr.inference.operators.FactorGibbsOperator)

Aggregations

DiagonalMatrix (dr.inference.model.DiagonalMatrix)1 LatentFactorModel (dr.inference.model.LatentFactorModel)1 FactorGibbsOperator (dr.inference.operators.FactorGibbsOperator)1