C++ Reference: class DistributionStat

This documentation is automatically generated.

Base class to track and compute statistics about the distribution of a sequence of double. We provide a few sub-classes below that differ in the way the values are added to the sequence and in the way the stats are printed.
Method
Average

Return type: double

Get the average of the distribution or 0.0 if empty.

DistributionStat

Return type: explicit

Arguments: const std::string& name

DistributionStat

Arguments: const std::string& name, StatsGroup* group

~DistributionStat

Max

Return type: double

Min

Return type: double

Num

Return type: int64

Reset

Return type: void

StdDeviation

Return type: double

Get the standard deviation of the distribution or 0.0 if empty. We use the on-line algorithm of Welford described at http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance TODO(user): We could also use on top the Kahan summation algorithm to be even more precise but a bit slower too.

Sum

Return type: double

Trivial statistics on all the values added so far.

ValueAsString

Return type: std::string

Implemented by the subclasses.

WorthPrinting

Return type: bool

Send feedback about...