Class SingleLinkageStrategy

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

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

    • SingleLinkageStrategy

      public SingleLinkageStrategy()
  • Method Details

    • calculateDistance

      public Distance calculateDistance(Collection<Distance> distances)
      Computes the single-linkage distance, i.e., the minimum 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 minimum of the inputs