Package jebl.evolution.trees
Class SplitSystem
java.lang.Object
jebl.evolution.trees.SplitSystem
data structure for a set of splits
- Version:
- $Id: SplitSystem.java 317 2006-05-03 23:42:12Z alexeidrummond $
- Author:
- Korbinian Strimmer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
get number of labelsboolean[]
getSplit
(int i) get splitint
get number of splitsboolean[][]
get split vectorgetTaxa()
get taxon listboolean
hasSplit
(boolean[] split) + test whether a split is contained in this split system (assuming the same leaf order)toString()
print split system
-
Constructor Details
-
SplitSystem
- Parameters:
taxa
- the list of taxasize
- number of splits
-
-
Method Details
-
getSplitCount
public int getSplitCount()get number of splits -
getLabelCount
public int getLabelCount()get number of labels -
getSplitVector
public boolean[][] getSplitVector()get split vector -
getSplit
public boolean[] getSplit(int i) get split -
getTaxa
get taxon list -
hasSplit
public boolean hasSplit(boolean[] split) + test whether a split is contained in this split system (assuming the same leaf order)- Parameters:
split
- split
-
toString
print split system
-