edu.stanford.nlp.cluster
Interface SimpleClusters

All Superinterfaces:
Cloneable, Serializable
All Known Subinterfaces:
Clusters
All Known Implementing Classes:
AbstractSimpleClusters, VectorClusters

public interface SimpleClusters
extends Serializable, Cloneable

Simple Interface for a collection of Clusters. Allows Display, but not manipulation of Clusters.


Method Summary
 Object clone()
          Returns deep copy of Clusters
 boolean equals(Clusters cs)
          Returns true of cs==this, false otherwise
 double[] evaluateInterSimilarity(Array[] means)
          Evaluates InterCluster Similarity.
 Cluster get(int index)
          Returns Cluster with index index
 Iterator iterator()
          Returns an iterator of Clusters
 Matrix pr_w_d()
          returns matrix of smoothed probabilities P(w,d)=P(z)P(w|z)P(d|z)
 double score(Matrix m)
          Evaluates score of Clusters
 int size()
          Returns number of clusters
 String toString(DataCollection dbm)
          Returns String representation of Clusters
 String toXMLString(DataCollection dbm)
          Returns XML String representation of Clusters
 

Method Detail

get

public Cluster get(int index)
Returns Cluster with index index


size

public int size()
Returns number of clusters


iterator

public Iterator iterator()
Returns an iterator of Clusters


clone

public Object clone()
Returns deep copy of Clusters

Overrides:
clone in class Object

equals

public boolean equals(Clusters cs)
Returns true of cs==this, false otherwise


toXMLString

public String toXMLString(DataCollection dbm)
Returns XML String representation of Clusters


toString

public String toString(DataCollection dbm)
Returns String representation of Clusters


evaluateInterSimilarity

public double[] evaluateInterSimilarity(Array[] means)
Evaluates InterCluster Similarity. A high value indicates that the clusters are far apart, and a low value indicates that the clusters are close together


score

public double score(Matrix m)
Evaluates score of Clusters


pr_w_d

public Matrix pr_w_d()
returns matrix of smoothed probabilities P(w,d)=P(z)P(w|z)P(d|z)



Stanford NLP Group