use of dr.evomodel.operators.PatternWeightIncrementOperator in project beast-mcmc by beast-dev.
the class PatternWeightIncrementOperatorParser method parseXMLObject.
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
BeagleTreeLikelihood treeLikelihood = (BeagleTreeLikelihood) xo.getChild(BeagleTreeLikelihood.class);
final double weight = xo.getDoubleAttribute("weight");
return new PatternWeightIncrementOperator(treeLikelihood, weight);
}
Aggregations