Clear Filters
Clear Filters

Is it possible to define the threshold using the distance between clusters in hierarchical clustering?

3 views (last 30 days)
I am clustering my data using hierarchical clustering.
So far, I calculated the pairwise distance between data and found the tree containing the hierarchical cluster with linkage function.
I would like to form the hierarchical cluster when the distance between clusters are smaller than a certain distance (42.3m).
The following figure of data is the output of linkage function, the third column is the distance between the two cluster merged. I would like to form the hierarchical cluster until index 24242 (24242th link).
I understand the threshold for defining clusters are either the heights or the inconsistency coefficients of nodes.
Is it possible to define the threshold using the distance between clusters or the link number?
I believe there must be a better approach than using the cluster function in this situation, but I'm at a loss.
Thanks in advance!
  1 Comment
Naomi Gray
Naomi Gray on 7 Sep 2022
My mistake... I didn't understand that the 'height' of the tree meant the measure of closeness of either individual data points or clusters.
I should use distance criterion in this case.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!