Search in sources :

Example 1 with BMPriorLikelihood

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

Aggregations

BMPriorLikelihood (dr.evomodel.coalescent.BMPriorLikelihood)1 VariableDemographicModel (dr.evomodel.coalescent.VariableDemographicModel)1 ParametricDistributionModel (dr.inference.distribution.ParametricDistributionModel)1 Parameter (dr.inference.model.Parameter)1