/*
 * Affinity_Propagation_Cluster.java
 *
 * Created on March 12, 2007, 4:10 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package medusa.georgios.ClusteringAlgorithms;

import medusa.georgios.vecmathpackage.Color3f;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;


/**
 *
 * @author Georgios
 */
public class Affinity_Propagation_Cluster {
    
    public int cluster_id;
    public int number_of_elements;
    public int index_of_the_exemplar_of_this_cluster;
    public String name_of_the_exemplar_of_this_cluster;
    public ArrayList Indexes_Of_Nodes_In_the_cluster = new ArrayList();
    public ArrayList  Names_Of_Nodes_In_the_cluster = new ArrayList();
    public Color3f cluster_color;

    public Affinity_Propagation_Cluster() {
    }
    
    public String showInformation_about_cluster()
    {
        StringBuffer out = new StringBuffer();
        out.append("------------------ Cluster: "+(cluster_id+1)+" -------------------------\n");
//        out.append("cluster_id:"+cluster_id+"\nindex_of_the_exemplar_of_this_cluster:"+index_of_the_exemplar_of_this_cluster);
//        out.append("\nname_of_the_exemplar_of_this_cluster:"+name_of_the_exemplar_of_this_cluster+"\n");
        for (int i = 0; i < number_of_elements; i++) {
            out.append(Names_Of_Nodes_In_the_cluster.get(i)+"\n");
        }
       
       
        return out.toString();
    }


    
    
}

 

Ads help maintain this website.