Implements the weighted-linkage clustering strategy. The distance between two clusters is computed as the weighted average of the distances between all inter-cluster element pairs, where each distance is weighted by its associated weight. This strategy is also known as the "weighted pair-group method" (WPGMA).
WeightedLinkageStrategy
01 Syntax
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| CalculateDistance | 2 | Combines two distances using the weighted-linkage criterion. |
03 Members
ICollection(Of Distance))Calculates the weighted-linkage distance from a collection of pairwise distances by computing the weighted arithmetic mean, where each distance is multiplied by its corresponding weight.
| Name | Type | Description |
|---|---|---|
distances | ICollection(Of Distance) | A collection of Distance objects containing the pairwise distances and their associated weights. |
A Distance object representing the weighted average distance; the returned object also carries the total weight.
Combines two distances using the weighted-linkage criterion. Returns the weighted arithmetic mean of the two distance values, using each distance's weight as the weighting factor.
| Name | Type | Description |
|---|---|---|
a | Distance | The first Distance value with its associated weight. May be |
b | Distance | The second Distance value with its associated weight. May be |
The weighted average of the two distance values.