MCPcopy Create free account
hub / github.com/dds-bridge/dds / PrintStatsPosition

Method PrintStatsPosition

library/src/ab_stats.cpp:152–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150
151
152void ABstats::PrintStatsPosition(
153 ofstream& fout,
154 const int no,
155 const string& text,
156 const ABtracker& abt,
157 const ABtracker& divisor) const
158{
159 if (! abt.sumCum)
160 return;
161
162 fout << setw(2) << (no == -1 ? "" : to_string(no)) << " " <<
163 setw(20) << left << text <<
164 setw(9) << right << abt.sum <<
165 setw(6) << setprecision(1) << fixed <<
166 100. * abt.sum / static_cast<double>(divisor.sum);
167
168 if (abt.sum)
169 fout << setw(6) << setprecision(1) << fixed <<
170 abt.sumWeighted / static_cast<double>(abt.sum);
171 else
172 fout << setw(6) << "";
173
174 fout << setw(9) << abt.sumCum <<
175 setw(6) << setprecision(1) << fixed <<
176 100. * abt.sumCum / static_cast<double>(divisor.sumCum) <<
177 setw(6) << setprecision(1) << fixed <<
178 abt.sumCumWeighted / static_cast<double>(abt.sumCum) << "\n";
179}
180
181
182void ABstats::PrintHeaderDepth(ofstream& fout) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected