26 double delta1 = x -
m;
28 double delta2 = x -
m;
43 double mean()
const {
return std::exp(
m); }
55 double stddev()
const {
return std::sqrt(
s /
n); }
Record running statistics on a logarithmic scale.
Definition: log-stats.h:19
double m
Definition: log-stats.h:59
double mean() const
Definition: log-stats.h:43
long count() const
Definition: log-stats.h:33
double s
Definition: log-stats.h:60
double stddev() const
Definition: log-stats.h:55
void add(double x)
Definition: log-stats.h:22
long n
Definition: log-stats.h:58