Search in sources :

Example 1 with PatternWeightIncrementOperator

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

Aggregations

PatternWeightIncrementOperator (dr.evomodel.operators.PatternWeightIncrementOperator)1 BeagleTreeLikelihood (dr.evomodel.treelikelihood.BeagleTreeLikelihood)1