Search in sources :

Example 1 with GibbsPruneAndRegraft

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);
}
Also used : TreeModel(dr.evomodel.tree.TreeModel) GibbsPruneAndRegraft(dr.evomodel.operators.GibbsPruneAndRegraft)

Aggregations

GibbsPruneAndRegraft (dr.evomodel.operators.GibbsPruneAndRegraft)1 TreeModel (dr.evomodel.tree.TreeModel)1