MCPcopy Create free account
hub / github.com/couchbase/fleece / stddev

Method stddev

Fleece/Support/Benchmark.hh:44–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 double stddev() {
45 double avg = average();
46 size_t n = _times.size(), skip = n / 10;
47 double total = 0;
48 for (auto t=_times.begin()+skip; t != _times.end()-skip; ++t)
49 total += ::pow(*t - avg, 2);
50 return sqrt( total / (n - 2*skip));
51 }
52
53 std::pair<double,double> range() {
54 sort();

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected