19 #ifndef __invdyn_statistics_H__ 20 #define __invdyn_statistics_H__ 26 #define STATISTICS_MAX_NAME_LENGTH 60 79 bool quantity_exists(std::string name);
82 void store(std::string name,
const double & value);
85 void reset(std::string name);
91 void report(std::string name,
int precision=2,
92 std::ostream& output = std::cout);
95 void report_all(
int precision=2, std::ostream& output = std::cout);
98 long double get_total(std::string name);
101 long double get_average(std::string name);
104 long double get_min(std::string name);
107 long double get_max(std::string name);
110 long double get_last(std::string name);
StatisticsException(std::string error)
A class to compute statistics about quantities of interest.
std::map< std::string, QuantityData > * records_of
Statistics & getStatistics()