use of dr.evomodel.speciation.SpeciesTreeSimplePrior in project beast-mcmc by beast-dev.
the class SpeciesTreeSimplePriorParser method parseXMLObject.
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
SpeciesTreeModel st = (SpeciesTreeModel) xo.getChild(SpeciesTreeModel.class);
//ParametricDistributionModel pr = (ParametricDistributionModel) xo.getChild(ParametricDistributionModel.class);
Parameter pr = (Parameter) ((XMLObject) xo.getChild("sigma")).getChild(Parameter.class);
final XMLObject cxo = xo.getChild(TIPS);
final ParametricDistributionModel tipsPrior = (ParametricDistributionModel) cxo.getChild(ParametricDistributionModel.class);
return new SpeciesTreeSimplePrior(st, pr, tipsPrior);
}
Aggregations