ClusterDissimilarityFunction

ClusterDissimilarityFunction

is an option for ClusteringTree and Dendrogram that specifies the intercluster dissimilarity.

Details

  • Possible settings for ClusterDissimilarityFunction include:
  • "Single"smallest intercluster dissimilarity
    "Average"average intercluster dissimilarity
    "Complete"largest intercluster dissimilarity
    "WeightedAverage"weighted average intercluster dissimilarity
    "Centroid"distance from cluster centroids
    "Median"distance from cluster medians
    "Ward"Ward's minimum variance dissimilarity
    a pure function
  • The function f defines a distance from any two clusters.
  • The function f needs to be a real valued function of the DistanceMatrix.

Examples

Basic Examples  (1)

Obtain a cluster hierarchy from a list of colors:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=

Compare it with the clustering obtained using different cluster dissimilarities:

In[3]:=
Click for copyable input
Out[3]=

Show the same results using dendrograms:

In[4]:=
Click for copyable input
Out[4]=

See Also

Dendrogram  ClusteringTree

Introduced in 2016
(10.4)