Home
last modified time | relevance | path

Searched refs:square_avg (Results 1 – 1 of 1) sorted by relevance

/system/extras/micro_bench/
Dmicro_bench.cpp143 static inline double computeRunningSquareAvg(double avg, double square_avg, size_t cur_idx) { in computeRunningSquareAvg() argument
144 return (square_avg / (cur_idx + 1)) * cur_idx + (avg / (cur_idx + 1)) * avg; in computeRunningSquareAvg()
147 static inline double computeStdDev(double square_avg, double running_avg) { in computeStdDev() argument
148 return sqrt(square_avg - running_avg * running_avg); in computeStdDev()
192 double running_avg, double square_avg, double min, double max) { in printColdSummary() argument
195 computeStdDev(running_avg, square_avg)/1024.0, min/1024.0, max/1024.0); in printColdSummary()
203 double min = 0.0, max = 0.0, running_avg = 0.0, square_avg = 0.0; \
212 square_avg = computeRunningSquareAvg(avg, square_avg, i); \
237 double std_dev = computeStdDev(square_avg, running_avg); \
265 running_avg, square_avg, min, max));
[all …]