Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

/util/statUtil.h File Reference

#include "statCollection.h"

Include dependency graph for statUtil.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Functions

void setupAverageRatio (statCollection *stats, char *stat1, char *stat2)
 Setup the stats so a ratio between two stats for each unit can be properly measured.

void measureAverageRatio (statCollection *stats)
 Measures the ration between the two stats set-up from setupAverageRatio.

double sumStatEntries (statCollection *stats, const char *category, const char *owner)
 Sum the values of all stat entries for the same (category, owner).

double averageStatEntries (statCollection *stats, const char *category, const char *owner)
double stdevStatEntries (statCollection *stats, const char *category, const char *owner)
double maxStatEntries (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.


Function Documentation

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.

double maxStatEntries statCollection stats,
const char *  category,
const char *  owner
 

void measureAverageRatio statCollection stats  ) 
 

Measures the ration between the two stats set-up from setupAverageRatio.

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 stdevStatEntries statCollection stats,
const char *  category,
const char *  owner
 

double sumStatEntries statCollection stats,
const char *  category,
const char *  owner
 

Sum the values of all stat entries for the same (category, owner).

Type is automatically known from the entry.


Generated on Tue Aug 18 03:42:16 2009 for HOG by doxygen 1.3.4