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