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