edu.stanford.nlp.cluster
Class MatrixDecompositionClusters

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

public class MatrixDecompositionClusters
extends AbstractSimpleClusters

SimpleClusters implementation that represents P(z), P(w|z), P(d|z) as matrices. Allows Display, but not manipulation of Clusters.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.stanford.nlp.cluster.AbstractSimpleClusters
score
 
Constructor Summary
MatrixDecompositionClusters(Matrix U, Matrix S, Matrix V)
           
 
Method Summary
 Object clone()
          Returns deep copy of Clusters
 Cluster get(int i)
          Returns Cluster with index index
 Iterator iterator()
          Returns an iterator of Clusters
 int size()
          Returns number of clusters
 
Methods inherited from class edu.stanford.nlp.cluster.AbstractSimpleClusters
equals, evaluateInterSimilarity, pr_w_d, score, toString, toXMLString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MatrixDecompositionClusters

public MatrixDecompositionClusters(Matrix U,
                                   Matrix S,
                                   Matrix V)
Method Detail

get

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

Specified by:
get in interface SimpleClusters
Specified by:
get in class AbstractSimpleClusters

size

public int size()
Returns number of clusters

Specified by:
size in interface SimpleClusters
Specified by:
size in class AbstractSimpleClusters

iterator

public Iterator iterator()
Returns an iterator of Clusters

Specified by:
iterator in interface SimpleClusters
Specified by:
iterator in class AbstractSimpleClusters

clone

public Object clone()
Returns deep copy of Clusters

Specified by:
clone in interface SimpleClusters
Specified by:
clone in class AbstractSimpleClusters


Stanford NLP Group