Search in sources :

Example 1 with LinearGrowthModel

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

Aggregations

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