Search in sources :

Example 1 with TipStateSwapOperator

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);
}
Also used : TipStateSwapOperator(dr.evomodel.operators.TipStateSwapOperator) AncestralStateBeagleTreeLikelihood(dr.evomodel.treelikelihood.AncestralStateBeagleTreeLikelihood)

Aggregations

TipStateSwapOperator (dr.evomodel.operators.TipStateSwapOperator)1 AncestralStateBeagleTreeLikelihood (dr.evomodel.treelikelihood.AncestralStateBeagleTreeLikelihood)1