use of dr.inference.distribution.ParametricMultivariateDistributionModel in project beast-mcmc by beast-dev.
the class DirichletProcessPriorParser method parseXMLObject.
@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
Parameter categoriesParameter = (Parameter) xo.getElementFirstChild(CATEGORIES);
CompoundParameter uniquelyRealizedParameters = (CompoundParameter) xo.getChild(CompoundParameter.class);
ParametricMultivariateDistributionModel baseModel = (ParametricMultivariateDistributionModel) xo.getElementFirstChild(BASE_MODEL);
Parameter gamma = (Parameter) xo.getElementFirstChild(CONCENTRATION);
return new //
DirichletProcessPrior(//
categoriesParameter, //
uniquelyRealizedParameters, //
baseModel, gamma);
}
Aggregations