use of dr.evomodel.operators.GibbsPruneAndRegraft in project beast-mcmc by beast-dev.
the class GibbsPruneAndRegraftParser method parseXMLObject.
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
TreeModel treeModel = (TreeModel) xo.getChild(TreeModel.class);
double weight = xo.getDoubleAttribute(MCMCOperator.WEIGHT);
boolean pruned = true;
if (xo.hasAttribute("pruned")) {
pruned = xo.getBooleanAttribute("pruned");
}
return new GibbsPruneAndRegraft(treeModel, pruned, weight);
}
Aggregations