Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

java hierarchical clustering algorithm

Mon Jul 11, 2011 5:32 am

i want to download the java code for hierarchical clustering algorithm



Re: java hierarchical clustering algorithm

Mon Jul 11, 2011 2:34 pm

dear , we don't have implementation of it , but we would like to help you while your implementing it ,
Code:
    Begin with the disjoint clustering having level L(0) = 0 and sequence number m = 0.
    Find the least dissimilar pair of clusters in the current clustering, say pair (r), (s), according to

    d[(r),(s)] = min d[(i),(j)]

    where the minimum is over all pairs of clusters in the current clustering.
    Increment the sequence number : m = m +1. Merge clusters (r) and (s) into a single cluster to form the next clustering m. Set the level of this clustering to

    L(m) = d[(r),(s)]
    Update the proximity matrix, D, by deleting the rows and columns corresponding to clusters (r) and (s) and adding a row and column corresponding to the newly formed cluster. The proximity between the new cluster, denoted (r,s) and old cluster (k) is defined in this way:

    d[(k), (r,s)] = min d[(k),(r)], d[(k),(s)]
    If all objects are in one cluster, stop. Else, go to step 2.


Folloing is a C++ code , that you need to look at it to get idea of function like sorting or evaluation of the closest
Attachments
cluster.c
Clustering function in C++
(135.75 KiB) Downloaded 1813 times

Post a reply
  Related Posts  to : java hierarchical clustering algorithm
 Kmeans Clustering - Unsupervised Learning     -  
 hungarian algorithm java     -  
 apriori algorithm java code     -  
 shortest path algorithm java     -  
 RSA encryption decryption cipher algorithm java     -  
 java code for decision tree algorithm     -  
 LZW data compression-decompression algorithm java code     -  
 bidirectional bubble sort algorithm implementation java     -  
 quicksort algorithm implementation java code- array sorting     -  
 Bubble Sort Algorithm Java Implementation Code-Sorting Array     -