MCPcopy Create free account
hub / github.com/BirolLab/abyss / writeHistograms

Function writeHistograms

RResolver/RAlgorithmsShort.cpp:1231–1257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1229}
1230
1231void
1232writeHistograms(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
1259void
1260resolveShort(

Callers 1

resolveShortFunction · 0.85

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected