Class CL
java.lang.Object
pt.ist.phylolib.command.algorithm.Algorithm
pt.ist.phylolib.command.algorithm.gcp.GloballyClosestPairs
pt.ist.phylolib.command.algorithm.gcp.CL
public final class CL extends GloballyClosestPairs
Responsible for calculating a
phylogenetic tree from a distance matrix using the Complete-Linkage algorithm.-
Nested Class Summary
Nested classes/interfaces inherited from interface pt.ist.phylolib.command.ICommand
ICommand.IGetter<T> -
Field Summary
-
Constructor Summary
Constructors Constructor Description CL() -
Method Summary
Modifier and Type Method Description protected doubledissimilarity(double ij, double ik, double jk, int ci, int cj)Calculates the dissimilarity between a given previously existing node and a given node created by joining two existing nodes.
-
Constructor Details
-
CL
public CL()
-
-
Method Details
-
dissimilarity
protected double dissimilarity(double ij, double ik, double jk, int ci, int cj)Description copied from class:GloballyClosestPairsCalculates the dissimilarity between a given previously existing node and a given node created by joining two existing nodes.- Specified by:
dissimilarityin classGloballyClosestPairs- Parameters:
ij- the distance between the two existing nodes that were joinedik- the distance between one of the nodes that was joined and the previously existing nodejk- the distance between another of the nodes that was joined and the previously existing nodeci- the number of elements in the cluster of one of the nodes that were joinedcj- the number of elements in the cluster of another of the nodes that were joined- Returns:
- the dissimilarity between the previously existing node and the created node
-