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