output an5

This commit is contained in:
Patrick Brosi 2022-01-22 13:36:37 +01:00
parent 396ea175e7
commit e402f19cdb

View file

@ -286,6 +286,10 @@ void Collector::printShortStats(std::ostream* os) const {
static_cast<double>(_results.size())) * static_cast<double>(_results.size())) *
100 100
<< ","; << ",";
(*os) << (static_cast<double>(_an5) /
static_cast<double>(_results.size())) *
100
<< ",";
(*os) << (static_cast<double>(_an10) / (*os) << (static_cast<double>(_an10) /
static_cast<double>(_results.size())) * static_cast<double>(_results.size())) *
100 100
@ -339,6 +343,12 @@ void Collector::printStats(std::ostream* os) const {
100 100
<< " %" << " %"
<< "\n"; << "\n";
(*os) << " an-5: "
<< (static_cast<double>(_an5) /
static_cast<double>(_results.size())) *
100
<< " %"
<< "\n";
(*os) << " an-10: " (*os) << " an-10: "
<< (static_cast<double>(_an10) / << (static_cast<double>(_an10) /
static_cast<double>(_results.size())) * static_cast<double>(_results.size())) *
@ -413,6 +423,8 @@ std::map<string, double> Collector::getStats() {
} }
stats["an-0"] = stats["an-0"] =
(static_cast<double>(_an0) / static_cast<double>(_results.size())) * 100; (static_cast<double>(_an0) / static_cast<double>(_results.size())) * 100;
stats["an-5"] =
(static_cast<double>(_an5) / static_cast<double>(_results.size())) * 100;
stats["an-10"] = stats["an-10"] =
(static_cast<double>(_an10) / static_cast<double>(_results.size())) * 100; (static_cast<double>(_an10) / static_cast<double>(_results.size())) * 100;
stats["an-20"] = stats["an-20"] =