Search in sources :

Example 1 with SpeciesTreeSimplePrior

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);
}
Also used : ParametricDistributionModel(dr.inference.distribution.ParametricDistributionModel) Parameter(dr.inference.model.Parameter) SpeciesTreeModel(dr.evomodel.speciation.SpeciesTreeModel) SpeciesTreeSimplePrior(dr.evomodel.speciation.SpeciesTreeSimplePrior)

Aggregations

SpeciesTreeModel (dr.evomodel.speciation.SpeciesTreeModel)1 SpeciesTreeSimplePrior (dr.evomodel.speciation.SpeciesTreeSimplePrior)1 ParametricDistributionModel (dr.inference.distribution.ParametricDistributionModel)1 Parameter (dr.inference.model.Parameter)1