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
MatrixDecompositionClusters
public MatrixDecompositionClusters(Matrix U,
Matrix S,
Matrix V)
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