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

Function mean

src/program.cpp:874–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872}
873
874static double mean(const std::vector<double>& v)
875{
876 double total = std::accumulate(v.begin(), v.end(), 0.0);
877 return total / v.size();
878}
879
880static double median(const std::vector<double>& v)
881{

Callers 1

perf_reportMethod · 0.70

Calls 4

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

Tested by

no test coverage detected