MCPcopy Create free account
hub / github.com/apache/trafficserver / mean

Function mean

lib/catch2/catch.hpp:6991–6995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6989
6990 template <typename Iterator>
6991 double mean(Iterator first, Iterator last) {
6992 auto count = last - first;
6993 double sum = std::accumulate(first, last, 0.);
6994 return sum / count;
6995 }
6996
6997 template <typename URng, typename Iterator, typename Estimator>
6998 sample resample(URng& rng, int resamples, Iterator first, Iterator last, Estimator& estimator) {

Callers 4

bootstrapFunction · 0.85
estimate_clock_costFunction · 0.85
standard_deviationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected