|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBioinfoFieldExtractor.UPGMA
public class UPGMA
This class is the standard implementation of Unweighted Pair Group Method with Arithmetic mean, also known as average linkage method. It is used to combine similar messages into clusters for for glocal alignment.
Constructor Summary | |
---|---|
UPGMA(float[][] disM,
java.util.ArrayList<java.lang.String> seq)
The constructor |
Method Summary | |
---|---|
PhylogenTree |
buildTree()
This method performs UPGMA algorithm to build a tree with clusters characterizing the closest related elements of the sequence. |
void |
clusterTrees(PhylogenTree root)
Cluster "closely-related" trees into clusters |
java.util.ArrayList<java.lang.Integer> |
convertToDec(java.lang.String msg)
Converts string to an array of dec representations of the chars |
float |
findDistance(PhylogenTree tree1,
PhylogenTree tree2)
Returns the distance between two clusters |
java.util.ArrayList<PhylogenTree> |
getClusters()
Returns the clusters |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UPGMA(float[][] disM, java.util.ArrayList<java.lang.String> seq)
disM
- Distance matrixseq
- The sequences of messagesMethod Detail |
---|
public PhylogenTree buildTree()
public float findDistance(PhylogenTree tree1, PhylogenTree tree2)
tree1
- Phylogenetic tree # 1tree2
- Phylogenetic tree # 2public void clusterTrees(PhylogenTree root)
root
- of the tree to be clusteredpublic java.util.ArrayList<PhylogenTree> getClusters()
public java.util.ArrayList<java.lang.Integer> convertToDec(java.lang.String msg)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |