|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a collection of Clusters that span the entire data collection.
Method Summary | |
boolean |
add(Cluster cluster)
Adds cluster to Clusters |
void |
clearData()
Clears the Data from all clusters |
double |
getScore()
Returns score, if score has already been computed |
void |
logOddsTransform()
transforms feature values to log-odds values, where the value of feature w in cluster z Value(w,z)=log2(P(w|z)/avg_over_clusters(P(w|z))). |
void |
merge(int i,
int j)
Merges clusters i and j and assigns the merged cluster the lower index. |
void |
reIndex()
Re-indexes clusters. |
void |
remove(Cluster cluster)
Removes Cluster cluster |
void |
removeElementAt(int index)
Removes cluster at index index |
Cluster |
set(int index,
Cluster cluster)
Sets the value of index index to cluster |
void |
setSize(int size)
Sets the the number of Cluster s in Clusters |
Methods inherited from interface edu.stanford.nlp.cluster.SimpleClusters |
clone, equals, evaluateInterSimilarity, get, iterator, pr_w_d, score, size, toString, toXMLString |
Method Detail |
public boolean add(Cluster cluster)
cluster
to Clusters
public void setSize(int size)
Cluster
s in Clusters
public Cluster set(int index, Cluster cluster)
index
to cluster
public void removeElementAt(int index)
index
public void remove(Cluster cluster)
cluster
public void reIndex()
public double getScore()
public void merge(int i, int j)
public void clearData()
public void logOddsTransform()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |