MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / common_average

Function common_average

src/program.cpp:867–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

865}
866
867static double common_average(const std::vector<double>& v)
868{
869 std::size_t n = v.size() / 4;
870 double total = std::accumulate(v.begin() + n, v.end() - n, 0.0);
871 return total / std::distance(v.begin() + n, v.end() - n);
872}
873
874static double mean(const std::vector<double>& v)
875{

Callers 1

perf_reportMethod · 0.85

Calls 5

accumulateFunction · 0.85
distanceFunction · 0.85
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected