Skip to main content

Module hierarchical

Module hierarchical 

Source
Expand description

Agglomerative hierarchical clustering and dendrograms.

See the book entry Hierarchical clustering and phylogenetic trees.

Structs§

Dendrogram
The full merge tree.
HierarchicalClustering
Agglomerative clustering of points into k clusters by cutting the dendrogram.
Merge
One merge of two clusters into a new one. Cluster ids 0..n are the original points; the merge at position i creates cluster n + i (the same convention as SciPy’s linkage matrix).

Enums§

Linkage
How the distance between two clusters is defined from the distances between their points.

Functions§

agglomerate
Builds the dendrogram from a symmetric distance matrix with the Lance-Williams update, in O(n³) time and O(n²) memory. For Linkage::Ward the distances must be Euclidean.