double maxStatEntries(StatCollection *stats, const char *category, const char *owner)
double averageStatEntries(StatCollection *stats, const char *category, const char *owner)
long unsigned countStatEntries(StatCollection *stats, const char *category, const char *owner)
Count the number of state instances in the stat collection.
The StatCollection class is for collecting stats across different parts of the simulation.
void setupAverageRatio(StatCollection *stats, char *stat1, char *stat2)
Setup the stats so a ratio between two stats for each unit can be properly measured.
double SumStatEntries(StatCollection *stats, const char *category, const char *owner)
Sum the values of all stat entries for the same (category, owner).
double stdevStatEntries(StatCollection *stats, const char *category, const char *owner)
void measureAverageRatio(StatCollection *stats)
Measures the ration between the two stats set-up from setupAverageRatio.