Skip to main content

agglomerate

Function agglomerate 

Source
pub fn agglomerate(
    distances: VR2D<'_>,
    linkage: Linkage,
) -> Result<Dendrogram, ErrorsJSL>
Expand description

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.