Search in sources :

Example 1 with RandomWalkModel

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);
}
Also used : RandomWalkModel(dr.inference.distribution.RandomWalkModel) ParametricDistributionModel(dr.inference.distribution.ParametricDistributionModel) Parameter(dr.inference.model.Parameter)

Aggregations

ParametricDistributionModel (dr.inference.distribution.ParametricDistributionModel)1 RandomWalkModel (dr.inference.distribution.RandomWalkModel)1 Parameter (dr.inference.model.Parameter)1