Search in sources :

Example 6 with TreeIntervals

use of dr.evolution.coalescent.TreeIntervals in project beast-mcmc by beast-dev.

the class GaussianProcessMultilocusSkytrackLikelihood method makeTreeIntervalList.

//                  OK
private void makeTreeIntervalList(List<Tree> treeList, boolean add) {
    if (intervalsList == null) {
        intervalsList = new ArrayList<TreeIntervals>();
    } else {
        intervalsList.clear();
    }
    for (Tree tree : treeList) {
        numIntervals += tree.getExternalNodeCount();
        intervalsList.add(new TreeIntervals(tree));
        if (add && tree instanceof TreeModel) {
            addModel((TreeModel) tree);
        }
    }
}
Also used : TreeModel(dr.evomodel.tree.TreeModel) Tree(dr.evolution.tree.Tree) TreeIntervals(dr.evolution.coalescent.TreeIntervals)

Aggregations

TreeIntervals (dr.evolution.coalescent.TreeIntervals)6 Tree (dr.evolution.tree.Tree)1 TreeModel (dr.evomodel.tree.TreeModel)1