Search in sources :

Example 1 with NegativeStatistic

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

the class NegativeStatisticParser method parseXMLObject.

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

Aggregations

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