({{, (RefLink[ClusterDissimilarityFunction, paclet:ref/ClusterDissimilarityFunction])
is an option for (RefLink[ClusteringTree, paclet:ref/ClusteringTree]) and (RefLink[Dendrogram, paclet:ref/Dendrogram]) that specifies the intercluster dissimilarity.}})

OpenersNotesSection(Spacer1)Details

Possible settings for (RefLink[ClusterDissimilarityFunction, paclet:ref/ClusterDissimilarityFunction]) include:

The function f defines a distance from any two clusters.

The function f needs to be a real valued function of the (RefLink[DistanceMatrix, paclet:ref/DistanceMatrix]).

OpenersPrimaryExamplesSection(Spacer1)Examples  (1)

OpenersExampleSection0(Spacer1)Basic Examples  (1)

Obtain a cluster hierarchy from a list of colors:

colors = RandomColor[15];

ClusteringTree[colors]

Compare it with the clustering obtained using different cluster dissimilarities:

ClusteringTree[colors, ClusterDissimilarityFunction->#]&/@{"Centroid", "Single", "Average", "WeightedAverage", "Median", "Ward", "Complete"}

Show the same results using dendrograms:

Dendrogram[colors, ClusterDissimilarityFunction->#]&/@{"Centroid", "Single", "Average", "WeightedAverage", "Median", "Ward", "Complete"}

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Dendrogram, paclet:ref/Dendrogram])  ▪  (RefLink[ClusteringTree, paclet:ref/ClusteringTree])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Cluster Analysis, paclet:guide/ClusterAnalysis])}})}})