Expand description
Agglomerative hierarchical clustering and dendrograms.
See the book entry Hierarchical clustering and phylogenetic trees.
Structs§
- Dendrogram
- The full merge tree.
- Hierarchical
Clustering - Agglomerative clustering of points into
kclusters by cutting the dendrogram. - Merge
- One merge of two clusters into a new one. Cluster ids
0..nare the original points; the merge at positionicreates clustern + 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 andO(n²)memory. ForLinkage::Wardthe distances must be Euclidean.