Package ffx.numerics.clustering
Interface LinkageStrategy
- All Known Implementing Classes:
AverageLinkageStrategy
,CompleteLinkageStrategy
,SingleLinkageStrategy
,WeightedLinkageStrategy
public interface LinkageStrategy
Strategy interface for computing the inter-cluster distance used during agglomeration.
- Since:
- 1.0
- Author:
- Lars Behnke, 2013, Michael J. Schnieders
-
Method Summary
Modifier and TypeMethodDescriptioncalculateDistance
(Collection<Distance> distances) Computes the linkage distance between two clusters from a collection of pairwise distances between their members (and possibly weights).
-
Method Details
-
calculateDistance
Computes the linkage distance between two clusters from a collection of pairwise distances between their members (and possibly weights).- Parameters:
distances
- the collection of pairwise distances contributing to this linkage- Returns:
- the aggregated distance according to the strategy
-