Set<ClusterContext> clusterContexts = learner.getClusterContexts();
/* Sum every context in every word */
for (int i : words){
Word w = vocab.getWord(i);
double weight = (1.0*w.frequency)/(totalSize*wordCount);
for (ClusterContext cc : clusterContexts){
distribution[cc.type1 + 1][cc.type2 + 1]+= (w.clusterDistribution(cc)*weight);
}
learner.registerClusterUpdate(this);
}
return distribution;
}