Package pal.tree
Class SplitUtils
- java.lang.Object
-
- pal.tree.SplitUtils
-
public class SplitUtils extends java.lang.Object
utilities for split systems- Version:
- $Id: SplitUtils.java,v 1.6 2002/06/05 23:23:14 matt Exp $
- Author:
- Korbinian Strimmer
-
-
Constructor Summary
Constructors Constructor Description SplitUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
getSplit(IdGroup idGroup, Node internalNode, boolean[] split)
get split for branch associated with internal nodestatic 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)
-
-
-
Method Detail
-
getSplits
public static SplitSystem getSplits(IdGroup idGroup, Tree tree)
creates a split system from a tree (using a pre-specified order of sequences)- Parameters:
idGroup
- sequence order for the matrixtree
-
-
getSplits
public static SplitSystem getSplits(Tree tree)
creates a split system from a tree (using tree-induced order of sequences)- Parameters:
tree
-
-
getSplit
public static void getSplit(IdGroup idGroup, Node internalNode, boolean[] split)
get split for branch associated with internal node- Parameters:
idGroup
- order of labelsinternalNode
- Nodeboolean
- [] split
-
isSame
public 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)- Parameters:
s1
- split 1s2
- split 2
-
-