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