- for (it = validScores.begin(); it != validScores.end(); it++) {
- if (randomtree == "") {
- it2 = uscoreFreq.find(it->first);
- //user data has that score
- if (it2 != uscoreFreq.end()) { uscoreFreq[it->first] /= T.size(); ucumul+= it2->second; }
- else { uscoreFreq[it->first] = 0.0000; } //no user trees with that score
- //make uCumul map
- uCumul[it->first] = ucumul;
+ for (it = validScores[a].begin(); it != validScores[a].end(); it++) {
+ if (randomtree == "") {
+ it2 = uscoreFreq[a].find(it->first);
+ //user data has that score
+ if (it2 != uscoreFreq[a].end()) { uscoreFreq[a][it->first] /= T.size(); ucumul+= it2->second; }
+ else { uscoreFreq[a][it->first] = 0.0000; } //no user trees with that score
+ //make uCumul map
+ uCumul[a][it->first] = ucumul-a;
+ }
+
+ //make rscoreFreq map and rCumul
+ it2 = rscoreFreq[a].find(it->first);
+ //get percentage of random trees with that info
+ if (it2 != rscoreFreq[a].end()) { rscoreFreq[a][it->first] /= iters; rcumul+= it2->second; }
+ else { rscoreFreq[a][it->first] = 0.0000; } //no random trees with that score
+ rCumul[a][it->first] = rcumul-a;