Search in sources :

Example 1 with OrderedLatentLiabilityLikelihood

use of dr.evomodel.continuous.OrderedLatentLiabilityLikelihood in project beast-mcmc by beast-dev.

the class LatentFactorLiabilityGibbsOperatorParser method parseXMLObject.

@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    double weight = xo.getDoubleAttribute(WEIGHT);
    LatentFactorModel lfm = (LatentFactorModel) xo.getChild(LatentFactorModel.class);
    OrderedLatentLiabilityLikelihood liabilityLikelihood = (OrderedLatentLiabilityLikelihood) xo.getChild(OrderedLatentLiabilityLikelihood.class);
    return new LatentFactorLiabilityGibbsOperator(weight, lfm, liabilityLikelihood);
}
Also used : LatentFactorLiabilityGibbsOperator(dr.inference.operators.LatentFactorLiabilityGibbsOperator) OrderedLatentLiabilityLikelihood(dr.evomodel.continuous.OrderedLatentLiabilityLikelihood) LatentFactorModel(dr.inference.model.LatentFactorModel)

Aggregations

OrderedLatentLiabilityLikelihood (dr.evomodel.continuous.OrderedLatentLiabilityLikelihood)1 LatentFactorModel (dr.inference.model.LatentFactorModel)1 LatentFactorLiabilityGibbsOperator (dr.inference.operators.LatentFactorLiabilityGibbsOperator)1