Search in sources :

Example 1 with ParametricMultivariateDistributionModel

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);
}
Also used : CompoundParameter(dr.inference.model.CompoundParameter) ParametricMultivariateDistributionModel(dr.inference.distribution.ParametricMultivariateDistributionModel) CompoundParameter(dr.inference.model.CompoundParameter) Parameter(dr.inference.model.Parameter)

Aggregations

ParametricMultivariateDistributionModel (dr.inference.distribution.ParametricMultivariateDistributionModel)1 CompoundParameter (dr.inference.model.CompoundParameter)1 Parameter (dr.inference.model.Parameter)1