|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstatalign.postprocess.plugins.contree.hash.HashUtils
public class HashUtils
Details about this class can be found in papers on consensus tree construction algorithms: - An Experimental Analysis of Consensus Tree Algorithm [..]. Seung-Jin Sul et al. 2009. - A Linear-time Majority Tree Algorithm. Amenta et al. 2004.
Field Summary | |
---|---|
int[] |
a1
|
int[] |
a2
|
int |
m1
|
int |
m2
|
Constructor Summary | |
---|---|
HashUtils()
|
Method Summary | |
---|---|
static int |
getNextPrime(int n)
Determines the next prime above or equal to n. |
void |
initialize(int noOfTaxa,
int noOfTrees,
int c,
long seed)
Initializes the hash utilities. |
static boolean |
isPrime(long n)
Determines if a number is a prime or not. |
static void |
main(java.lang.String[] args)
For debugging purposes only. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int m1
public int m2
public int[] a1
public int[] a2
Constructor Detail |
---|
public HashUtils()
Method Detail |
---|
public void initialize(int noOfTaxa, int noOfTrees, int c, long seed)
public static int getNextPrime(int n)
public static boolean isPrime(long n)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |