Implements the complete-linkage (farthest neighbor) clustering strategy. The distance between two clusters is defined as the maximum distance between any single element from the first cluster and any single element from the second cluster. This strategy tends to produce compact, spherical clusters.
CompleteLinkageStrategy
01 Syntax
Microsoft.VisualBasic.DataMining.HierarchicalClustering.CompleteLinkageStrategy
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| CalculateDistance | 2 | Combines two distances using the complete-linkage (maximum) criterion. |
03 Members
CalculateDistance(
ICollection(Of Distance))Calculates the complete-linkage distance from a collection of pairwise distances by selecting the maximum distance value.
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 whose value is the largest distance found in the collection.
Combines two distances using the complete-linkage (maximum) criterion. Returns the larger 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 maximum distance value between a and b ; returns Double if both are Nothing.