Function kodama::primitive [] [src]

pub fn primitive<T: Float>(
    dis: &mut [T],
    observations: usize,
    method: Method
) -> Dendrogram<T>

Perform hierarchical clustering using the "primitive" algorithm as described in Müllner's paper.

Note that this implementation is the "naive" implementation of hierarchical clustering, and is therefore terribly slow. Use linkage instead to have the appropriate algorithm chosen for you.