Implements the average-linkage (unweighted pair-group method using arithmetic averages, UPGMA) clustering strategy. The distance between two clusters is defined as the arithmetic mean of all pairwise distances between elements of the two clusters. This strategy represents a compromise between single-linkage and complete-linkage.
AverageLinkageStrategy
01 Syntax
Microsoft.VisualBasic.DataMining.HierarchicalClustering.AverageLinkageStrategy
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| CalculateDistance | 2 | Combines two distances using the average-linkage criterion. |
03 Members
CalculateDistance(
ICollection(Of Distance))Calculates the average-linkage distance from a collection of pairwise distances by computing the unweighted arithmetic mean of all distance values.
Parameters
| Name | Type | Description |
|---|---|---|
distances | ICollection(Of Distance) | A collection of Distance objects containing the pairwise distances between elements of two clusters. |
Returns
A Distance object representing the arithmetic mean of the input distances; returns zero if the collection is empty.
Combines two distances using the average-linkage criterion. Returns the simple arithmetic mean of the two distance values.
Parameters
| Name | Type | Description |
|---|---|---|
a | Distance | The first Distance value. May be |
b | Distance | The second Distance value. May be |
Returns
The arithmetic mean of the two distance values; returns0 if both are Nothing.