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);
}
Aggregations