Class CompleteLinkageStrategy

java.lang.Object
ffx.numerics.clustering.CompleteLinkageStrategy
All Implemented Interfaces:
LinkageStrategy

public class CompleteLinkageStrategy extends Object implements LinkageStrategy
Linkage strategy that uses the maximum of pairwise distances between cluster members (complete-linkage / farthest-neighbor).
Since:
1.0
Author:
Lars Behnke, 2013, Michael J. Schnieders
  • Constructor Details

    • CompleteLinkageStrategy

      public CompleteLinkageStrategy()
  • Method Details

    • calculateDistance

      public Distance calculateDistance(Collection<Distance> distances)
      Computes the complete-linkage distance, i.e., the maximum of provided distances.
      Specified by:
      calculateDistance in interface LinkageStrategy
      Parameters:
      distances - collection of pairwise distances between cluster members
      Returns:
      a Distance whose value is the maximum of the inputs