use of dr.inference.operators.TreeMaximizationOperator in project beast-mcmc by beast-dev.
the class TreeMaximizationOperatorParser method parseXMLObject.
@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
double weight = xo.getDoubleAttribute(MCMCOperator.WEIGHT);
int maxSteps = (int) xo.getAttribute(MAX_STEP, 20);
MaximizerWrtParameter maximizerWrtParameter = (MaximizerWrtParameter) xo.getChild(MaximizerWrtParameter.class);
SimpleMCMCOperator treeOperator = (SimpleMCMCOperator) xo.getChild(MCMCOperator.class);
return new TreeMaximizationOperator(treeOperator, maximizerWrtParameter, maxSteps, weight);
}
Aggregations