|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.umass.cs.mallet.base.cluster.Clustering
Constructor Summary | |
Clustering(InstanceList instances,
int numLabels,
int[] labels)
Clustering constructor. |
Method Summary | |
InstanceList |
getCluster(int label)
Return an list of instances with a particular label. |
InstanceList[] |
getClusters()
Returns an array of instance lists corresponding to clusters. |
int |
getLabel(int index)
Get the cluster label for a particular instance. |
int |
getNumClusters()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Clustering(InstanceList instances, int numLabels, int[] labels)
instances
- Instances that are clusterednumLabels
- Number of clusterslabels
- Assignment of instances to clusters; many-to-one with
range [0,numLabels).Method Detail |
public int getNumClusters()
public int getLabel(int index)
public InstanceList getCluster(int label)
public InstanceList[] getClusters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |