Class AverageLinkageStrategy

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

public class AverageLinkageStrategy extends Object implements LinkageStrategy
Linkage strategy that uses the arithmetic mean of pairwise distances between cluster members (UPGMA/average linkage).
Since:
1.0
Author:
Lars Behnke, 2013, Michael J. Schnieders
  • Constructor Details

    • AverageLinkageStrategy

      public AverageLinkageStrategy()
  • Method Details

    • calculateDistance

      public Distance calculateDistance(Collection<Distance> distances)
      Computes the average of the provided distances.
      Specified by:
      calculateDistance in interface LinkageStrategy
      Parameters:
      distances - collection of pairwise distances between cluster members
      Returns:
      a Distance whose value is the arithmetic mean of the inputs