Search in sources :

Example 1 with ExponentialStatistic

use of dr.inference.model.ExponentialStatistic in project beast-mcmc by beast-dev.

the class ExponentialStatisticParser method parseXMLObject.

public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    ExponentialStatistic expStatistic = null;
    Object child = xo.getChild(0);
    if (child instanceof Statistic) {
        expStatistic = new ExponentialStatistic(EXPONENTIAL_STATISTIC, (Statistic) child);
    } else {
        throw new XMLParseException("Unknown element found in " + getParserName() + " element:" + child);
    }
    return expStatistic;
}
Also used : ExponentialStatistic(dr.inference.model.ExponentialStatistic) Statistic(dr.inference.model.Statistic) ExponentialStatistic(dr.inference.model.ExponentialStatistic)

Aggregations

ExponentialStatistic (dr.inference.model.ExponentialStatistic)1 Statistic (dr.inference.model.Statistic)1