Package ffx.numerics.clustering
Class AverageLinkageStrategy
java.lang.Object
ffx.numerics.clustering.AverageLinkageStrategy
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateDistance
(Collection<Distance> distances) Computes the average of the provided distances.
-
Constructor Details
-
AverageLinkageStrategy
public AverageLinkageStrategy()
-
-
Method Details
-
calculateDistance
Computes the average of the provided distances.- Specified by:
calculateDistance
in interfaceLinkageStrategy
- Parameters:
distances
- collection of pairwise distances between cluster members- Returns:
- a Distance whose value is the arithmetic mean of the inputs
-