All Implemented Interfaces:
ICommand<Matrix,Tree>

public final class UPGMA extends GloballyClosestPairs
Responsible for calculating a phylogenetic tree from a distance matrix using the Unweighted Pair Group Method with Arithmetic-mean algorithm.
  • Constructor Details

    • UPGMA

      public UPGMA()
  • Method Details

    • dissimilarity

      protected double dissimilarity(double ij, double ik, double jk, int ci, int cj)
      Description copied from class: GloballyClosestPairs
      Calculates the dissimilarity between a given previously existing node and a given node created by joining two existing nodes.
      Specified by:
      dissimilarity in class GloballyClosestPairs
      Parameters:
      ij - the distance between the two existing nodes that were joined
      ik - the distance between one of the nodes that was joined and the previously existing node
      jk - the distance between another of the nodes that was joined and the previously existing node
      ci - the number of elements in the cluster of one of the nodes that were joined
      cj - 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