| 1229 | } |
| 1230 | |
| 1231 | void |
| 1232 | writeHistograms(const Resolution& resolution, const std::string& prefix, int subiteration) |
| 1233 | { |
| 1234 | if (opt::verbose) { |
| 1235 | std::cerr << "Writing algorithm histograms..." << std::flush; |
| 1236 | } |
| 1237 | |
| 1238 | std::string findsFilename = prefix + "-r" + std::to_string(resolution.r) + "-" + |
| 1239 | std::to_string(subiteration + 1) + "-finds.tsv"; |
| 1240 | std::ofstream findsFile(findsFilename.c_str()); |
| 1241 | findsFile << resolution.findsHistogram; |
| 1242 | |
| 1243 | std::string fractionFindsFilename = prefix + "-r" + std::to_string(resolution.r) + "-" + |
| 1244 | std::to_string(subiteration + 1) + "-percent-finds.tsv"; |
| 1245 | std::ofstream fractionFindsFile(fractionFindsFilename.c_str()); |
| 1246 | fractionFindsFile << resolution.fractionFindsHistogram; |
| 1247 | |
| 1248 | std::string calculatedTestsFilename = prefix + "-r" + std::to_string(resolution.r) + "-" + |
| 1249 | std::to_string(subiteration + 1) + |
| 1250 | "-calculated-tests.tsv"; |
| 1251 | std::ofstream calculatedTestsFile(calculatedTestsFilename.c_str()); |
| 1252 | calculatedTestsFile << resolution.calculatedTestsHistogram; |
| 1253 | |
| 1254 | if (opt::verbose) { |
| 1255 | std::cerr << " Done!" << std::endl; |
| 1256 | } |
| 1257 | } |
| 1258 | |
| 1259 | void |
| 1260 | resolveShort( |