use of dr.evomodel.coalescent.operators.SampleNonActiveGibbsOperator in project beast-mcmc by beast-dev.
the class SampleNonActiveGibbsOperatorParser method parseXMLObject.
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
final double weight = xo.getDoubleAttribute(MCMCOperator.WEIGHT);
XMLObject cxo = xo.getChild(DISTRIBUTION);
ParametricDistributionModel distribution = (ParametricDistributionModel) cxo.getChild(ParametricDistributionModel.class);
cxo = xo.getChild(DATA_PARAMETER);
Parameter data = (Parameter) cxo.getChild(Parameter.class);
cxo = xo.getChild(INDICATOR_PARAMETER);
Parameter indicators = (Parameter) cxo.getChild(Parameter.class);
return new SampleNonActiveGibbsOperator(distribution, data, indicators, weight);
}
Aggregations