pal.tree
Class SplitSystem

java.lang.Object
  |
  +--pal.tree.SplitSystem

public class SplitSystem
extends java.lang.Object

data structure for a set of splits


Constructor Summary
SplitSystem(IdGroup idGroup, int size)
           
 
Method Summary
 IdGroup getIdGroup()
          get idGroup
 int getLabelCount()
          get number of labels
 boolean[] getSplit(int i)
          get split
 int getSplitCount()
          get number of splits
 boolean[][] getSplitVector()
          get split vector
 boolean hasSplit(boolean[] split)
          + test whether a split is contained in this split system (assuming the same leaf order)
 java.lang.String toString()
          print split system
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SplitSystem

public SplitSystem(IdGroup idGroup,
                   int size)
Parameters:
idGroup - sequence labels
size - number of splits
Method Detail

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

getIdGroup

public IdGroup getIdGroup()
get idGroup

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

public java.lang.String toString()
print split system
Overrides:
toString in class java.lang.Object