Closed:Distance Matrix in R
0
0
Entering edit mode
4.4 years ago
vschultz • 0

Hi!

I'm trying to write codes for these steps in R.

  1. Find two clusters Ci and Cj such that dij is minimum value.
  2. Let Ck => Ci & Cj.
  3. Add a vertex connecting Ci, Cj and place it at height dij/2.
  4. Delete Ci and Cj; Update the distance matrix by computing the average distance between each pair of clusters.
  5. Terminate when there's a single cluster remains.

I have a distance matrix;

image: 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

R distance-matrix • 80 views
ADD COMMENT
This thread is not open. No new answers may be added
Traffic: 2678 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6