Package ffx.numerics.clustering
Class WeightedLinkageStrategy
java.lang.Object
ffx.numerics.clustering.WeightedLinkageStrategy
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateDistance
(Collection<Distance> distances) Computes a weighted average of provided distances using their weights.
-
Constructor Details
-
WeightedLinkageStrategy
public WeightedLinkageStrategy()
-
-
Method Details
-
calculateDistance
Computes a weighted average of provided distances using their weights.- Specified by:
calculateDistance
in interfaceLinkageStrategy
- Parameters:
distances
- collection of distances, each providing a weight- Returns:
- a Distance whose value is the weight-normalized average, with total weight set
-