Search in sources :

Example 1 with GaussianProcessFromTree

use of dr.evomodel.continuous.GaussianProcessFromTree 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;
}
Also used : TreeDataLikelihood(dr.evomodel.treedatalikelihood.TreeDataLikelihood) GaussianProcessFromTree(dr.evomodel.continuous.GaussianProcessFromTree) TreeTipGaussianProcess(dr.evomodel.treedatalikelihood.continuous.TreeTipGaussianProcess) ContinuousDataLikelihoodDelegate(dr.evomodel.treedatalikelihood.continuous.ContinuousDataLikelihoodDelegate) FullyConjugateMultivariateTraitLikelihood(dr.evomodel.continuous.FullyConjugateMultivariateTraitLikelihood)

Aggregations

FullyConjugateMultivariateTraitLikelihood (dr.evomodel.continuous.FullyConjugateMultivariateTraitLikelihood)1 GaussianProcessFromTree (dr.evomodel.continuous.GaussianProcessFromTree)1 TreeDataLikelihood (dr.evomodel.treedatalikelihood.TreeDataLikelihood)1 ContinuousDataLikelihoodDelegate (dr.evomodel.treedatalikelihood.continuous.ContinuousDataLikelihoodDelegate)1 TreeTipGaussianProcess (dr.evomodel.treedatalikelihood.continuous.TreeTipGaussianProcess)1