cut_dendrogram function

Cut a dendrogram in context

Cut a dendrogram in context

cut_dendrogram(dend, threshold)

Arguments

  • dend: A single dendrogram.
  • threshold: A mininum tallest branch value.

Returns

A named vector whose names are data point names and whose values are cluster labels.

Details

The number of clusters is determined to be 1 if the tallest branch of the dendrogram is less than the threshold, or if the index of dispersion (standard deviation squared divided by mean) of the branch heights is below 0.015. Otherwise, we cut at the longest branch of the dendrogram to determine the number of clusters.

  • Maintainer: George Clare Kennedy
  • License: MIT + file LICENSE
  • Last published: 2025-02-20