Search in sources :

Example 1 with DirtyLikelihoodOperator

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

the class DirtyLikelihoodOperatorParser method parseXMLObject.

public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    double weight = xo.getDoubleAttribute(MCMCOperator.WEIGHT);
    Likelihood likelihood = (Likelihood) xo.getChild(Likelihood.class);
    return new DirtyLikelihoodOperator(likelihood, weight);
}
Also used : Likelihood(dr.inference.model.Likelihood) DirtyLikelihoodOperator(dr.inference.operators.DirtyLikelihoodOperator)

Aggregations

Likelihood (dr.inference.model.Likelihood)1 DirtyLikelihoodOperator (dr.inference.operators.DirtyLikelihoodOperator)1