use of dr.inference.operators.SelectorOperator in project beast-mcmc by beast-dev.
the class SelectorOperatorParser method parseXMLObject.
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
final Parameter parameter = (Parameter) xo.getChild(Parameter.class);
final double weight = xo.getDoubleAttribute(MCMCOperator.WEIGHT);
final SelectorOperator op = new SelectorOperator(parameter);
op.setWeight(weight);
return op;
}
Aggregations