Search in sources :

Example 1 with NodeHeightsStatistic

use of dr.evomodel.tree.NodeHeightsStatistic in project beast-mcmc by beast-dev.

the class NodeHeightsStatisticParser method parseXMLObject.

public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    String name = xo.getAttribute(Statistic.NAME, xo.getId());
    Tree tree = (Tree) xo.getChild(Tree.class);
    Parameter groupSizes = (Parameter) xo.getChild(Parameter.class);
    return new NodeHeightsStatistic(name, tree, groupSizes);
}
Also used : NodeHeightsStatistic(dr.evomodel.tree.NodeHeightsStatistic) Tree(dr.evolution.tree.Tree) Parameter(dr.inference.model.Parameter)

Aggregations

Tree (dr.evolution.tree.Tree)1 NodeHeightsStatistic (dr.evomodel.tree.NodeHeightsStatistic)1 Parameter (dr.inference.model.Parameter)1