cut_dendrogram: Cut a dendrogram in context

View source: R/clusterer_farm.R

cut_dendrogramR Documentation

Cut a dendrogram in context

Description

Cut a dendrogram in context

Usage

cut_dendrogram(dend, threshold)

Arguments

dend

A single dendrogram.

threshold

A mininum tallest branch value.

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.

Value

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


mappeR documentation built on April 3, 2025, 6:19 p.m.