public class SplitUtils
extends java.lang.Object
| Constructor and Description |
|---|
SplitUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
getSplit(IdGroup idGroup,
Node internalNode,
boolean[] split)
get split for branch associated with internal node
|
static SplitSystem |
getSplits(IdGroup idGroup,
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 whether two splits are identical
(assuming they are of the same length
and use the same leaf order)
|
public static SplitSystem getSplits(IdGroup idGroup, Tree tree)
idGroup - sequence order for the matrixtree - public static SplitSystem getSplits(Tree tree)
tree - public static void getSplit(IdGroup idGroup, Node internalNode, boolean[] split)
idGroup - order of labelsinternalNode - Nodeboolean[] - splitpublic static boolean isSame(boolean[] s1,
boolean[] s2)
s1 - split 1s2 - split 2