pub fn upgma(
distances: VR2D<'_>,
labels: &[&str],
) -> Result<PhylogeneticTree, ErrorsJSL>Expand description
UPGMA (unweighted pair group method with arithmetic mean): repeatedly merges the two closest clusters, placing the new node at half their distance, and averages distances weighted by cluster size. Assumes a constant evolutionary rate (a molecular clock) and returns a rooted, ultrametric tree; it is exact when the input is ultrametric.