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);
}
}
}
Aggregations