use of dr.evomodel.treedatalikelihood.continuous.TreeTipGaussianProcess in project beast-mcmc by beast-dev.
the class GaussianProcessFromTreeParser method parseXMLObject.
@Override
public Object parseXMLObject(XMLObject xo) throws XMLParseException {
FullyConjugateMultivariateTraitLikelihood traitModel = (FullyConjugateMultivariateTraitLikelihood) xo.getChild(FullyConjugateMultivariateTraitLikelihood.class);
if (traitModel != null) {
return new GaussianProcessFromTree(traitModel);
}
TreeDataLikelihood treeDataLikelihood = (TreeDataLikelihood) xo.getChild(TreeDataLikelihood.class);
ContinuousDataLikelihoodDelegate dataDelegate = GibbsSampleMissingTraitsOperator.parseContinuousDataLikelihoodDelegate(xo);
boolean mask = xo.getAttribute(MASK_TO_MISSING, true);
TreeTipGaussianProcess process = new TreeTipGaussianProcess(dataDelegate.getDataModel().getModelName(), treeDataLikelihood, dataDelegate, null, true);
return process;
}
Aggregations