use of dr.inference.operators.MaximizerWrtParameterOperator in project beast-mcmc by beast-dev.
the class MaximizerWrtParameterOperatorParser method parseXMLObject.
@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
double weight = xo.getDoubleAttribute(MCMCOperator.WEIGHT);
MaximizerWrtParameter maximizerWrtParameter = (MaximizerWrtParameter) xo.getChild(MaximizerWrtParameter.class);
final int maxSteps = xo.getAttribute(MAX_STEPS, Integer.MAX_VALUE);
return new MaximizerWrtParameterOperator(maximizerWrtParameter, maxSteps, weight);
}
Aggregations