Search in sources :

Example 1 with ReciprocalStatistic

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

the class ReciprocalStatisticParser method parseXMLObject.

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

Aggregations

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