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