Home   >   User Resources   >   Online Help   >   apaClustering.Hierarchical.CompleteLinkage
 

 

Function index Version 3.0.0

apaClustering.Hierarchical.CompleteLinkage(DistanceMatrix)

Excel=apaClustering.Hierarchical.CompleteLinkage(DistanceMatrix)

Result

Performs a hierarchical cluster analysis based on the complete-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/Complete-linkage_clustering

Remarks

The height of a merge is the largest distance between a member of the first and a member of the second constituent. The results correspond to the complete-linkage method of standard statistical software (e.g. scipy or R).