Search in sources :

Example 1 with LatentFactorModelPrecisionGibbsOperator

use of dr.inference.operators.LatentFactorModelPrecisionGibbsOperator in project beast-mcmc by beast-dev.

the class LatentFactorModelPrecisionGibbsOperatorParser method parseXMLObject.

@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    String weightTemp = (String) xo.getAttribute(WEIGHT);
    double weight = Double.parseDouble(weightTemp);
    LatentFactorModel LFM = (LatentFactorModel) xo.getChild(LatentFactorModel.class);
    DistributionLikelihood prior = (DistributionLikelihood) xo.getChild(DistributionLikelihood.class);
    boolean randomScan = xo.getAttribute(RANDOM_SCAN, true);
    return new LatentFactorModelPrecisionGibbsOperator(LFM, prior, weight, randomScan);
}
Also used : LatentFactorModel(dr.inference.model.LatentFactorModel) LatentFactorModelPrecisionGibbsOperator(dr.inference.operators.LatentFactorModelPrecisionGibbsOperator) DistributionLikelihood(dr.inference.distribution.DistributionLikelihood)

Aggregations

DistributionLikelihood (dr.inference.distribution.DistributionLikelihood)1 LatentFactorModel (dr.inference.model.LatentFactorModel)1 LatentFactorModelPrecisionGibbsOperator (dr.inference.operators.LatentFactorModelPrecisionGibbsOperator)1