Class WeightedLinkageStrategy

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

public class WeightedLinkageStrategy extends Object implements LinkageStrategy
Linkage strategy that computes a weighted average of pairwise distances using the associated weights of cluster members.
Since:
1.0
Author:
Lars Behnke, 2013, Michael J. Schnieders
  • Constructor Details

    • WeightedLinkageStrategy

      public WeightedLinkageStrategy()
  • Method Details

    • calculateDistance

      public Distance calculateDistance(Collection<Distance> distances)
      Computes a weighted average of provided distances using their weights.
      Specified by:
      calculateDistance in interface LinkageStrategy
      Parameters:
      distances - collection of distances, each providing a weight
      Returns:
      a Distance whose value is the weight-normalized average, with total weight set