use of dr.evomodel.coalescent.PowerLawGrowthModel in project beast-mcmc by beast-dev.
the class PowerLawGrowthModelParser method parseXMLObject.
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
Units.Type units = XMLUnits.Utils.getUnitsAttr(xo);
XMLObject cxo = xo.getChild(N0);
Parameter N0Param = (Parameter) cxo.getChild(Parameter.class);
Parameter rParam;
cxo = xo.getChild(POWER);
rParam = (Parameter) cxo.getChild(Parameter.class);
return new PowerLawGrowthModel(N0Param, rParam, units);
}
Aggregations