Search in sources :

Example 1 with MaximizerWrtParameterOperator

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);
}
Also used : MaximizerWrtParameterOperator(dr.inference.operators.MaximizerWrtParameterOperator) MaximizerWrtParameter(dr.evomodel.treedatalikelihood.discrete.MaximizerWrtParameter)

Aggregations

MaximizerWrtParameter (dr.evomodel.treedatalikelihood.discrete.MaximizerWrtParameter)1 MaximizerWrtParameterOperator (dr.inference.operators.MaximizerWrtParameterOperator)1