apaClustering.Hierarchical.SingleLinkage(DistanceMatrix)
=apaClustering.Hierarchical.SingleLinkage(DistanceMatrix)Result
Performs a hierarchical cluster analysis based on the single-linkage algorithm. Returns a (NumberOfElements-1) x 4 matrix with one row per merge. Column 1 is the index of the cluster, column 2 the index of the first cluster constituent, column 3 the index of the second cluster constituent and column 4 the height of the cluster, i.e. the distance at which the two constituents are merged, on the scale of the input distances.
Syntax
DistanceMatrix: n x n distance matrix, e.g. from apaDistances.Euclidian
Algorithm
See https://en.wikipedia.org/wiki/Single-linkage_clustering
Remarks
The height of a merge is the smallest distance between a member of the first and a member of the second constituent. The results correspond to the single-linkage method of standard statistical software (e.g. scipy or R).
