de.uni_leipzig.bf.cluster
Class Cluster

java.lang.Object
  extended by de.uni_leipzig.bf.cluster.Cluster

public class Cluster
extends java.lang.Object

Author:
an
 

Field Summary
protected  java.util.HashMap<java.lang.Integer,java.util.TreeSet<java.lang.Integer>> border
           
protected  java.util.TreeSet<java.lang.Integer> elements
           
protected  ClusterGraph graph
           
(package private)  java.util.TreeSet<java.lang.Integer> innerBorder
           
(package private)  java.util.TreeSet<java.lang.Integer> outerBorder
           
protected  int seed
           
 
Constructor Summary
Cluster(ClusterGraph _graph, java.lang.Integer _seed)
           
 
Method Summary
 void addNode(java.lang.Integer node)
           
 Cluster getCopy()
          Generate a copy of this clusters
 java.util.TreeSet<java.lang.Integer> getElements()
           
 double getRelativeFlow()
           
 double getSilhouette()
          Computes the silhouette value of the clusters at hand
 double getSilhouetteFull()
          Computes the silhouette value of the clusters at hand
 java.lang.String getState()
          Get current state of cluster
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

border

protected java.util.HashMap<java.lang.Integer,java.util.TreeSet<java.lang.Integer>> border

elements

protected java.util.TreeSet<java.lang.Integer> elements

graph

protected ClusterGraph graph

innerBorder

java.util.TreeSet<java.lang.Integer> innerBorder

outerBorder

java.util.TreeSet<java.lang.Integer> outerBorder

seed

protected int seed
Constructor Detail

Cluster

public Cluster(ClusterGraph _graph,
               java.lang.Integer _seed)
Method Detail

addNode

public void addNode(java.lang.Integer node)

getCopy

public Cluster getCopy()
Generate a copy of this clusters


getElements

public java.util.TreeSet<java.lang.Integer> getElements()

getRelativeFlow

public double getRelativeFlow()

getSilhouette

public double getSilhouette()
Computes the silhouette value of the clusters at hand


getSilhouetteFull

public double getSilhouetteFull()
Computes the silhouette value of the clusters at hand


getState

public java.lang.String getState()
Get current state of cluster


main

public static void main(java.lang.String[] args)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object