Searched refs:cur_idx (Results 1 – 1 of 1) sorted by relevance
130 static inline double computeRunningAvg(double avg, double running_avg, size_t cur_idx) { in computeRunningAvg() argument131 return (running_avg / (cur_idx + 1)) * cur_idx + (avg / (cur_idx + 1)); in computeRunningAvg()134 static inline double computeRunningSquareAvg(double avg, double square_avg, size_t cur_idx) { in computeRunningSquareAvg() argument135 return (square_avg / (cur_idx + 1)) * cur_idx + (avg / (cur_idx + 1)) * avg; in computeRunningSquareAvg()