Search in sources :

Example 1 with ValuesPool

use of dr.inference.model.ValuesPool 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;
}
Also used : ValuesPool(dr.inference.model.ValuesPool) ValuesPoolSwapOperator(dr.inference.operators.ValuesPoolSwapOperator) MCMCOperator(dr.inference.operators.MCMCOperator)

Aggregations

ValuesPool (dr.inference.model.ValuesPool)1 MCMCOperator (dr.inference.operators.MCMCOperator)1 ValuesPoolSwapOperator (dr.inference.operators.ValuesPoolSwapOperator)1