Entering edit mode
4.4 years ago
vschultz
•
0
Hi!
I'm trying to write codes for these steps in R.
- Find two clusters Ci and Cj such that dij is minimum value.
- Let Ck => Ci & Cj.
- Add a vertex connecting Ci, Cj and place it at height dij/2.
- Delete Ci and Cj; Update the distance matrix by computing the average distance between each pair of clusters.
- Terminate when there's a single cluster remains.
I have a distance matrix;
and I have to merge the col-row corresponding to the minimum value in each step and calculate the average distance for all and repeat it again and again until a single cluster (0) remains.
I don't know what to do or how to do. Could you help me?
Thanks