18 Ratio(
const char *n=0,
bool show=
false) : name(n), show_on_destructor(
show)
22 void add(
bool success) { ave.
add(success ? 1.0 : 0.0); }
double add(const double &x)
Add an element x.
Ratio(const char *n=0, bool show=false)
void clear(double a=0.0, int e=0)
incrementaly maintain average of data sequence