Search in sources :

Example 1 with NegationOperator

use of dr.inference.operators.NegationOperator in project beast-mcmc by beast-dev.

the class NegationOperatorParser method parseXMLObject.

@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    Parameter data = (Parameter) xo.getChild(Parameter.class);
    double weight = xo.getDoubleAttribute(WEIGHT);
    return new NegationOperator(data, weight);
}
Also used : Parameter(dr.inference.model.Parameter) NegationOperator(dr.inference.operators.NegationOperator)

Aggregations

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