WOLFRAM

ClusteringTree[{e1,e2,}]

constructs a weighted tree from the hierarchical clustering of the elements e1, e2, .

ClusteringTree[{e1v1,e2v2,}]

represents ei with vi in the constructed graph.

ClusteringTree[{e1,e2,}{v1,v2,}]

represents ei with vi in the constructed graph.

ClusteringTree[label1e1,label2e2]

represents ei using labels labeli in the constructed graph.

ClusteringTree[data,h]

constructs a weighted tree from the hierarchical clustering of data by joining subclusters at distance less than h.

Details and Options

Examples

open allclose all

Basic Examples  (5)Summary of the most common use cases

Obtain a cluster hierarchy from a list of numbers:

Out[1]=1

Unify clusters at distance less than 2:

Out[6]=6

Obtain a cluster hierarchy from a list of strings:

Out[1]=1

Obtain a cluster hierarchy from a list of images:

Out[1]=1

Obtain a cluster hierarchy from a list of cities:

Out[1]=1

Obtain a cluster hierarchy from a list of Boolean entries:

Out[1]=1

Scope  (8)Survey of the scope of standard use cases

Obtain a cluster hierarchy from a list of numbers:

Out[1]=1

Obtain the leaves' labels:

Out[2]=2

Look at the distance between subclusters by looking at the VertexWeight:

Out[3]=3

Find the shortest path from the root vertex to the leaf 3.4:

Out[4]=4

Obtain a cluster hierarchy from a heterogeneous dataset:

Out[2]=2

Compare it with the cluster hierarchy of the colors:

Out[3]=3

Generate a list of random colors:

Out[1]=1

Obtain a cluster hierarchy from the list using the "Centroid" linkage:

Out[2]=2

Compute the hierarchical clustering from an Association:

Out[2]=2

Compare it with the hierarchical clustering of its Values:

Out[3]=3

Compare it with the hierarchical clustering of its Keys:

Out[4]=4

Obtain a cluster hierarchy by merging clusters at distance less than 0.4:

Out[1]=1
Out[2]=2

Change the style and the layout of the ClusteringTree:

Out[2]=2
Out[3]=3
Out[4]=4

Obtain a cluster hierarchy from a list of three-dimensional vectors and label the leaves with the total of the corresponding element:

Out[2]=2

Compare it with the cluster hierarchy of the total of each vector:

Out[3]=3

Obtain a cluster hierarchy from a list of integers:

Out[2]=2

Change the vertex labels by using regular polygons:

Out[3]=3
Out[4]=4

Options  (3)Common values & functionality for each option

ClusterDissimilarityFunction  (1)

Generate a list of random colors:

Out[1]=1

Obtain a cluster hierarchy from the list using the "Centroid" linkage:

Out[2]=2

Obtain a cluster hierarchy from the list using the "Single" linkage:

Out[3]=3

Obtain a cluster hierarchy from the list using a different "ClusterDissimilarityFunction":

Out[4]=4

DistanceFunction  (1)

Generate a list of random vectors:

Obtain a cluster hierarchy using different DistanceFunction:

Out[2]=2
Out[3]=3

FeatureExtractor  (1)

Obtain a cluster hierarchy from a list of pictures:

Out[2]=2

Use a different FeatureExtractor to extract features:

Out[3]=3
Out[4]=4

Use the Identity FeatureExtractor to leave the data unchanged:

Out[5]=5
Wolfram Research (2016), ClusteringTree, Wolfram Language function, https://reference.wolfram.com/language/ref/ClusteringTree.html (updated 2017).
Wolfram Research (2016), ClusteringTree, Wolfram Language function, https://reference.wolfram.com/language/ref/ClusteringTree.html (updated 2017).

Text

Wolfram Research (2016), ClusteringTree, Wolfram Language function, https://reference.wolfram.com/language/ref/ClusteringTree.html (updated 2017).

Wolfram Research (2016), ClusteringTree, Wolfram Language function, https://reference.wolfram.com/language/ref/ClusteringTree.html (updated 2017).

CMS

Wolfram Language. 2016. "ClusteringTree." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/ClusteringTree.html.

Wolfram Language. 2016. "ClusteringTree." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/ClusteringTree.html.

APA

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

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

BibTeX

@misc{reference.wolfram_2025_clusteringtree, author="Wolfram Research", title="{ClusteringTree}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/ClusteringTree.html}", note=[Accessed: 31-May-2025 ]}

@misc{reference.wolfram_2025_clusteringtree, author="Wolfram Research", title="{ClusteringTree}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/ClusteringTree.html}", note=[Accessed: 31-May-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_clusteringtree, organization={Wolfram Research}, title={ClusteringTree}, year={2017}, url={https://reference.wolfram.com/language/ref/ClusteringTree.html}, note=[Accessed: 31-May-2025 ]}

@online{reference.wolfram_2025_clusteringtree, organization={Wolfram Research}, title={ClusteringTree}, year={2017}, url={https://reference.wolfram.com/language/ref/ClusteringTree.html}, note=[Accessed: 31-May-2025 ]}