简体   繁体   中英

extract cluster information from the generated dendrogram

In the generated dendrogram graph, the column marks the distance cutoff. Is there a way to get the cluster information for each of these distance cutoffs. In specific, how to do that in Matlab or in R?

If X is your dataset, then in MATLAB the command

Z = linkage(X);

(requires Statistics Toolbox) will carry out hierarchical cluster analysis for you. Z is an (m-1)-by-3 matrix, where m is the number of rows of X . The first and second columns of Z give you the indices of the data points or cluster centroids that have been merged together at each node of the dendrogram, and the third column gives you the distance cutoff at that node.

Is that what you are asking for?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM