HierarchicalClustering`
HierarchicalClustering`

DirectAgglomerate

DirectAgglomerate[m]

constructs a cluster hierarchy based on the distance or dissimilarity matrix m.

DirectAgglomerate[m,list]

associates the elements of list with the rows of the matrix m in the cluster hierarchy.

更多信息和选项

  • To use DirectAgglomerate, you first need to load the Hierarchical Clustering Package using Needs["HierarchicalClustering`"].
  • DirectAgglomerate[m] labels each element by its row position in the matrix m.
  • DirectAgglomerate gives a Cluster object.
  • The cluster hierarchy may be viewed using DendrogramPlot.
  • The distance matrix m can be any symmetric matrix.
  • The method used to determine intercluster dissimilarity can be specified using the Linkage option.
  • Possible settings for the Linkage option 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
    fa pure function
  • The function f defines a distance from a cluster k to the new cluster formed by fusing clusters i and j.
  • The arguments supplied to f are dik, djk, dij, ni, nj, and nk, where d is the distance between clusters and n is the number of elements in a cluster.

范例

打开所有单元关闭所有单元

基本范例  (1)

Obtain a cluster hierarchy from a distance matrix:

Use labels to represent the rows:

Options  (1)

Linkage  (1)

Cluster hierarchy using Ward's linkage:

Wolfram Research (2007),DirectAgglomerate,Wolfram 语言函数,https://reference.wolfram.com/language/HierarchicalClustering/ref/DirectAgglomerate.html.

文本

Wolfram Research (2007),DirectAgglomerate,Wolfram 语言函数,https://reference.wolfram.com/language/HierarchicalClustering/ref/DirectAgglomerate.html.

CMS

Wolfram 语言. 2007. "DirectAgglomerate." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/HierarchicalClustering/ref/DirectAgglomerate.html.

APA

Wolfram 语言. (2007). DirectAgglomerate. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/HierarchicalClustering/ref/DirectAgglomerate.html 年

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_directagglomerate, organization={Wolfram Research}, title={DirectAgglomerate}, year={2007}, url={https://reference.wolfram.com/language/HierarchicalClustering/ref/DirectAgglomerate.html}, note=[Accessed: 22-November-2024 ]}