use of dr.inference.operators.LatentFactorLiabilityGibbsOperator in project beast-mcmc by beast-dev.
the class LatentFactorLiabilityGibbsOperatorParser method parseXMLObject.
@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
double weight = xo.getDoubleAttribute(WEIGHT);
LatentFactorModel lfm = (LatentFactorModel) xo.getChild(LatentFactorModel.class);
OrderedLatentLiabilityLikelihood liabilityLikelihood = (OrderedLatentLiabilityLikelihood) xo.getChild(OrderedLatentLiabilityLikelihood.class);
return new LatentFactorLiabilityGibbsOperator(weight, lfm, liabilityLikelihood);
}
Aggregations