Search in sources :

Example 1 with SelectorOperator

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;
}
Also used : Parameter(dr.inference.model.Parameter) SelectorOperator(dr.inference.operators.SelectorOperator)

Aggregations

Parameter (dr.inference.model.Parameter)1 SelectorOperator (dr.inference.operators.SelectorOperator)1