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;
}
Aggregations