Search in sources :

Example 1 with SampleNonActiveGibbsOperator

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);
}
Also used : SampleNonActiveGibbsOperator(dr.evomodel.coalescent.operators.SampleNonActiveGibbsOperator) ParametricDistributionModel(dr.inference.distribution.ParametricDistributionModel) Parameter(dr.inference.model.Parameter)

Aggregations

SampleNonActiveGibbsOperator (dr.evomodel.coalescent.operators.SampleNonActiveGibbsOperator)1 ParametricDistributionModel (dr.inference.distribution.ParametricDistributionModel)1 Parameter (dr.inference.model.Parameter)1