Search in sources :

Example 1 with ExponentialSawtoothModel

use of dr.evomodel.coalescent.ExponentialSawtoothModel in project beast-mcmc by beast-dev.

the class ExponentialSawtoothModelParser method parseXMLObject.

public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    Units.Type units = XMLUnits.Utils.getUnitsAttr(xo);
    XMLObject cxo = xo.getChild(POPULATION_SIZE);
    Parameter N0Param = (Parameter) cxo.getChild(Parameter.class);
    cxo = xo.getChild(GROWTH_RATE);
    Parameter rParam = (Parameter) cxo.getChild(Parameter.class);
    cxo = xo.getChild(WAVELENGTH);
    Parameter wavelengthParam = (Parameter) cxo.getChild(Parameter.class);
    cxo = xo.getChild(OFFSET);
    Parameter tParam = (Parameter) cxo.getChild(Parameter.class);
    return new ExponentialSawtoothModel(N0Param, rParam, wavelengthParam, tParam, units);
}
Also used : ExponentialSawtoothModel(dr.evomodel.coalescent.ExponentialSawtoothModel) Parameter(dr.inference.model.Parameter) Units(dr.evolution.util.Units) XMLUnits(dr.evoxml.util.XMLUnits)

Aggregations

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