Package jebl.evolution.trees
Class CladeSystem
- java.lang.Object
-
- jebl.evolution.trees.CladeSystem
-
- Direct Known Subclasses:
AttributedCladeSystem
public class CladeSystem extends java.lang.ObjectStores a set of unique clades for a tree- Version:
- $Id: CladeSystem.java 892 2008-02-27 03:53:11Z twobeers $
- Author:
- Andrew Rambaut
-
-
Constructor Summary
Constructors Constructor Description CladeSystem()CladeSystem(RootedTree tree)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(RootedTree tree)adds all the clades in the treejava.util.Set<Taxon>getClade(int index)intgetCladeCount()get number of unique cladesdoublegetCladeFrequency(int index)get clade frequencyjava.lang.StringgetCladeString(int index)
-
-
-
Constructor Detail
-
CladeSystem
public CladeSystem()
-
CladeSystem
public CladeSystem(RootedTree tree)
- Parameters:
tree-
-
-
Method Detail
-
getCladeCount
public int getCladeCount()
get number of unique clades
-
getClade
public java.util.Set<Taxon> getClade(int index)
-
getCladeString
public java.lang.String getCladeString(int index)
-
getCladeFrequency
public double getCladeFrequency(int index)
get clade frequency
-
add
public void add(RootedTree tree)
adds all the clades in the tree
-
-