use of dr.inference.operators.LatentFactorModelPrecisionGibbsOperator in project beast-mcmc by beast-dev.
the class LatentFactorModelPrecisionGibbsOperatorParser method parseXMLObject.
@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
String weightTemp = (String) xo.getAttribute(WEIGHT);
double weight = Double.parseDouble(weightTemp);
LatentFactorModel LFM = (LatentFactorModel) xo.getChild(LatentFactorModel.class);
DistributionLikelihood prior = (DistributionLikelihood) xo.getChild(DistributionLikelihood.class);
boolean randomScan = xo.getAttribute(RANDOM_SCAN, true);
return new LatentFactorModelPrecisionGibbsOperator(LFM, prior, weight, randomScan);
}
Aggregations