use of dr.inference.distribution.RandomWalkModel in project beast-mcmc by beast-dev.
the class RandomWalkModelParser method parseXMLObject.
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
Parameter data = (Parameter) xo.getChild(Parameter.class);
ParametricDistributionModel distribution = (ParametricDistributionModel) xo.getChild(ParametricDistributionModel.class);
boolean logScale = false;
if (xo.hasAttribute(LOG_SCALE))
logScale = xo.getBooleanAttribute(LOG_SCALE);
return new RandomWalkModel(distribution, data, false, logScale);
}
Aggregations