HierarchicalClustering`
HierarchicalClustering`

ClusterFlatten

ClusterFlatten[c]

gives a flat list of the data elements contained in the cluster c.

Details and Options

  • To use ClusterFlatten, you first need to load the Hierarchical Clustering Package using Needs["HierarchicalClustering`"].
  • ClusterFlatten[c] gives the elements of c sorted by a depth-first traversal of the cluster hierarchy.
  • ClusterFlatten[c] is equivalent to ClusterSplit[c,Length[c]].

Examples

Basic Examples  (1)

Flatten a hierarchical cluster:

Wolfram Research (2007), ClusterFlatten, Wolfram Language function, https://reference.wolfram.com/language/HierarchicalClustering/ref/ClusterFlatten.html.

Text

Wolfram Research (2007), ClusterFlatten, Wolfram Language function, https://reference.wolfram.com/language/HierarchicalClustering/ref/ClusterFlatten.html.

CMS

Wolfram Language. 2007. "ClusterFlatten." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/HierarchicalClustering/ref/ClusterFlatten.html.

APA

Wolfram Language. (2007). ClusterFlatten. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/HierarchicalClustering/ref/ClusterFlatten.html

BibTeX

@misc{reference.wolfram_2024_clusterflatten, author="Wolfram Research", title="{ClusterFlatten}", year="2007", howpublished="\url{https://reference.wolfram.com/language/HierarchicalClustering/ref/ClusterFlatten.html}", note=[Accessed: 12-July-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_clusterflatten, organization={Wolfram Research}, title={ClusterFlatten}, year={2007}, url={https://reference.wolfram.com/language/HierarchicalClustering/ref/ClusterFlatten.html}, note=[Accessed: 12-July-2024 ]}