Search in sources :

Example 1 with LoadingsIndependenceOperator

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

the class LoadingsIndependenceOperatorParser method parseXMLObject.

@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
    AdaptationMode mode = AdaptationMode.parseMode(xo);
    String scaleFactorTemp = (String) xo.getAttribute(SCALE_FACTOR);
    double scaleFactor = Double.parseDouble(scaleFactorTemp);
    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);
    // To change body of implemented methods use File | Settings | File Templates.
    return new LoadingsIndependenceOperator(LFM, prior, weight, randomScan, scaleFactor, mode);
}
Also used : AdaptationMode(dr.inference.operators.AdaptationMode) LoadingsIndependenceOperator(dr.inference.operators.factorAnalysis.LoadingsIndependenceOperator) LatentFactorModel(dr.inference.model.LatentFactorModel) DistributionLikelihood(dr.inference.distribution.DistributionLikelihood)

Aggregations

DistributionLikelihood (dr.inference.distribution.DistributionLikelihood)1 LatentFactorModel (dr.inference.model.LatentFactorModel)1 AdaptationMode (dr.inference.operators.AdaptationMode)1 LoadingsIndependenceOperator (dr.inference.operators.factorAnalysis.LoadingsIndependenceOperator)1