statalign.postprocess.plugins.contree.hash
Class HashTable
java.lang.Object
statalign.postprocess.plugins.contree.hash.HashTable
public class HashTable
- extends java.lang.Object
Method Summary |
void |
put(java.util.BitSet partition,
double edgeLength,
int tableKey,
int bucketKey,
double resRate,
java.util.LinkedList<HashEntry> partitions)
Puts a bi-partition into the hash table. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HashTable
public HashTable(int size)
put
public void put(java.util.BitSet partition,
double edgeLength,
int tableKey,
int bucketKey,
double resRate,
java.util.LinkedList<HashEntry> partitions)
- Puts a bi-partition into the hash table. If this bi-partition becomes a majority partition
this function will also put that into the
partitions
linked list.
- Parameters:
partition
- the bi-partition.tableKey
- the key that indexes the actual hash table.bucketKey
- the bucket key which is kept in each entry.resRate
- how many trees a bi-partition has to be in, to be a majority bi-partition.partitions
- a LinkedList
containing the majority partitions.