Search in sources :

Example 1 with PowerLawGrowthModel

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);
}
Also used : Parameter(dr.inference.model.Parameter) PowerLawGrowthModel(dr.evomodel.coalescent.PowerLawGrowthModel) Units(dr.evolution.util.Units) XMLUnits(dr.evoxml.util.XMLUnits)

Aggregations

Units (dr.evolution.util.Units)1 PowerLawGrowthModel (dr.evomodel.coalescent.PowerLawGrowthModel)1 XMLUnits (dr.evoxml.util.XMLUnits)1 Parameter (dr.inference.model.Parameter)1