use of dr.evomodel.coalescent.BMPriorLikelihood in project beast-mcmc by beast-dev.
the class BMPriorLikelihoodParser method parseXMLObject.
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
// Parameter mean = getParam(xo, MEAN);
Parameter sigma = getParam(xo, SIGMA);
// Parameter lambda = getParam(xo, LAMBDA);
final boolean logSpace = xo.getAttribute(LOG_SPACE, false);
// final boolean normalize = xo.getAttribute(NORMALIZE, false);
VariableDemographicModel m = (VariableDemographicModel) xo.getChild(VariableDemographicModel.class);
ParametricDistributionModel popMeanPrior = (ParametricDistributionModel) xo.getChild(ParametricDistributionModel.class);
return new BMPriorLikelihood(sigma, m, logSpace, popMeanPrior);
}
Aggregations