Package jebl.evolution.treemetrics
Class BilleraMetric
java.lang.Object
jebl.evolution.treemetrics.BilleraMetric
- All Implemented Interfaces:
RootedTreeMetric
Billera tree distance - sum of change in branch lengths required to transform one tree to the second
Note that this interface is not optimal for a large set where all pairs are required.
Creating TreeBiPartitionInfo's as a pre step is better unless memory is an issue.
- Version:
- $Id$
- Author:
- Joseph Heled
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getMetric
(RootedTree tree1, RootedTree tree2) calculates the metric between two rooted trees
-
Constructor Details
-
BilleraMetric
public BilleraMetric()
-
-
Method Details
-
getMetric
Description copied from interface:RootedTreeMetric
calculates the metric between two rooted trees- Specified by:
getMetric
in interfaceRootedTreeMetric
- Parameters:
tree1
- first treetree2
- second tree- Returns:
- the tree metric value
-