edu.stanford.nlp.cluster
Class AbstractSimpleClusters

java.lang.Object
  |
  +--edu.stanford.nlp.cluster.AbstractSimpleClusters
All Implemented Interfaces:
Cloneable, Serializable, SimpleClusters
Direct Known Subclasses:
MatrixDecompositionClusters, VectorClusters

public abstract class AbstractSimpleClusters
extends Object
implements SimpleClusters

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

See Also:
Serialized Form

Field Summary
protected  double score
           
 
Constructor Summary
AbstractSimpleClusters()
           
 
Method Summary
abstract  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.
abstract  Cluster get(int index)
          Returns Cluster with index index
abstract  Iterator iterator()
          Returns an iterator of Clusters
 Matrix pr_w_d()
          returns the smoothed probability matrix
 double score(Matrix m)
          Evaluates score of cluster based on an adaptation of equation (10) from Savaresi and Boley
abstract  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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

score

protected double score
Constructor Detail

AbstractSimpleClusters

public AbstractSimpleClusters()
Method Detail

get

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

Specified by:
get in interface SimpleClusters

size

public abstract int size()
Returns number of clusters

Specified by:
size in interface SimpleClusters

iterator

public abstract Iterator iterator()
Returns an iterator of Clusters

Specified by:
iterator in interface SimpleClusters

clone

public abstract Object clone()
Returns deep copy of Clusters

Specified by:
clone in interface SimpleClusters
Overrides:
clone in class Object

equals

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

Specified by:
equals in interface SimpleClusters

toXMLString

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

Specified by:
toXMLString in interface SimpleClusters

toString

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

Specified by:
toString in interface SimpleClusters

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

Specified by:
evaluateInterSimilarity in interface SimpleClusters

score

public double score(Matrix m)
Evaluates score of cluster based on an adaptation of equation (10) from Savaresi and Boley

Specified by:
score in interface SimpleClusters

pr_w_d

public Matrix pr_w_d()
returns the smoothed probability matrix

Specified by:
pr_w_d in interface SimpleClusters


Stanford NLP Group