Go to the documentation of this file.
22 using std::ostringstream;
64 map<string, QuantityData>::iterator
it;
75 <<
"\n*** STATISTICS (min - avg - max - last - nSamples - total) ***\n";
76 map<string, QuantityData>::iterator
it;
99 std::cout <<
"Statistics active." << std::endl;
104 std::cout <<
"Statistics inactive." << std::endl;
122 output <<
name << pad;
123 output << std::fixed << std::setprecision(
precision) << (quant_info.
min)
125 output << std::fixed << std::setprecision(
precision)
126 << (quant_info.
total / (
long double)quant_info.
stops) <<
"\t";
127 output << std::fixed << std::setprecision(
precision) << (quant_info.
max)
129 output << std::fixed << std::setprecision(
precision) << (quant_info.
last)
131 output << std::fixed << std::setprecision(
precision) << quant_info.
stops
133 output << std::fixed << std::setprecision(
precision) << quant_info.
total
144 return quant_info.
total;
154 return (quant_info.
total / (
long double)quant_info.
stops);
164 return quant_info.
min;
174 return quant_info.
max;
184 return quant_info.
last;
aligned_pair< T1, T2 > make_pair(const T1 &t1, const T2 &t2)
long double get_last(std::string name)
#define STATISTICS_MAX_NAME_LENGTH
long double get_average(std::string name)
long double get_min(std::string name)
void store(std::string name, const double &value)
Statistics & getStatistics()
A class to compute statistics about quantities of interest.
bool quantity_exists(std::string name)
long double get_max(std::string name)
void reset(std::string name)
std::map< std::string, QuantityData > * records_of
void report_all(int precision=2, std::ostream &output=std::cout)
void report(std::string name, int precision=2, std::ostream &output=std::cout)
long double get_total(std::string name)
tsid
Author(s): Andrea Del Prete, Justin Carpentier
autogenerated on Sat May 3 2025 02:48:17