jebl.evolution.trees
public class SplitUtils extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
getSplit(java.util.List<Taxon> taxa,
Tree tree,
Edge edge,
boolean[] split)
get split for branch associated with internal node
|
static SplitSystem |
getSplits(java.util.List<Taxon> taxa,
Tree tree)
creates a split system from a tree
(using a pre-specified order of sequences)
|
static SplitSystem |
getSplits(Tree tree)
creates a split system from a tree
(using tree-induced order of sequences)
|
static boolean |
isSame(boolean[] s1,
boolean[] s2)
Checks two splits for identity.
|
public static SplitSystem getSplits(Tree tree)
tree
- public static SplitSystem getSplits(java.util.List<Taxon> taxa, Tree tree)
taxa
- the list of taxa (order is important)tree
- public static void getSplit(java.util.List<Taxon> taxa, Tree tree, Edge edge, boolean[] split)
taxa
- order of labelstree
- Treeedge
- Edgesplit
- public static boolean isSame(boolean[] s1, boolean[] s2)
s1
- split 1s2
- split 2java.lang.IllegalArgumentException
- if splits don't have the same lengthhttp://code.google.com/p/jebl2/