MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / mean

Function mean

extlibs/catch/include/catch/catch.hpp:6767–6771  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6765
6766 template <typename Iterator>
6767 double mean(Iterator first, Iterator last) {
6768 auto count = last - first;
6769 double sum = std::accumulate(first, last, 0.);
6770 return sum / count;
6771 }
6772
6773 template <typename URng, typename Iterator, typename Estimator>
6774 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 1

accumulateClass · 0.85

Tested by

no test coverage detected