Search in sources :

Example 1 with RateEvolutionLikelihood

use of dr.oldevomodel.clock.RateEvolutionLikelihood in project beast-mcmc by beast-dev.

the class RateSampleOperatorParser method parseXMLObject.

public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    final double weight = xo.getDoubleAttribute(MCMCOperator.WEIGHT);
    final boolean sampleAll = xo.getBooleanAttribute(SAMPLE_ALL);
    TreeModel treeModel = (TreeModel) xo.getChild(TreeModel.class);
    RateEvolutionLikelihood rateEvolution = (RateEvolutionLikelihood) xo.getChild(RateEvolutionLikelihood.class);
    RateSampleOperator operator = new RateSampleOperator(treeModel, sampleAll, rateEvolution);
    operator.setWeight(weight);
    return operator;
}
Also used : TreeModel(dr.evomodel.tree.TreeModel) RateEvolutionLikelihood(dr.oldevomodel.clock.RateEvolutionLikelihood) RateSampleOperator(dr.evomodel.operators.RateSampleOperator)

Aggregations

RateSampleOperator (dr.evomodel.operators.RateSampleOperator)1 TreeModel (dr.evomodel.tree.TreeModel)1 RateEvolutionLikelihood (dr.oldevomodel.clock.RateEvolutionLikelihood)1