edu.stanford.nlp.cluster
Interface ClusteringMethod

All Known Implementing Classes:
AbstractClusteringMethod

public interface ClusteringMethod

Interface for Clustering Methods. All Clustering Methods must implement this interface.


Method Summary
 SimpleClusters cluster(DataCollection data, int num_clusters)
          Performs clustering algorithm, and populates Clusters
 SimpleClusters cluster(DataCollection data, int num_clusters, String filename)
          Performs clustering algorithm, and prints clusters to file
 double evaluate(DataCollection data, int num_clusters)
          Performs clustering algorithm and returns the score of the resulting clusters.
 double evaluate(DataCollection data, int num_clusters, String filename)
          Performs clustering algorithm, prints resulting clusters to file, and returns the score of the clusters.
 String toString()
          Returns String representation of Clustering Method, including clusters returned by clustering method
 String toXMLString()
          Returns XML String representation of Clustering Method, including clusters returned by clustering method
 

Method Detail

cluster

public SimpleClusters cluster(DataCollection data,
                              int num_clusters)
Performs clustering algorithm, and populates Clusters


cluster

public SimpleClusters cluster(DataCollection data,
                              int num_clusters,
                              String filename)
Performs clustering algorithm, and prints clusters to file


evaluate

public double evaluate(DataCollection data,
                       int num_clusters)
Performs clustering algorithm and returns the score of the resulting clusters.


evaluate

public double evaluate(DataCollection data,
                       int num_clusters,
                       String filename)
Performs clustering algorithm, prints resulting clusters to file, and returns the score of the clusters.


toXMLString

public String toXMLString()
Returns XML String representation of Clustering Method, including clusters returned by clustering method


toString

public String toString()
Returns String representation of Clustering Method, including clusters returned by clustering method

Overrides:
toString in class Object


Stanford NLP Group