Lines Matching refs:avg
78 float avg; member
234 s->avg = 0; in tst_init_stat()
290 name, unit, stat.avg, stat.avg_dev, stat.dev_ratio); in tst_fzsync_stat_info()
344 s->avg = tst_exp_moving_avg(alpha, sample, s->avg); in tst_upd_stat()
346 fabs(s->avg - sample), s->avg_dev); in tst_upd_stat()
347 s->dev_ratio = fabs(s->avg ? s->avg_dev / s->avg : 0); in tst_upd_stat()
480 } else if (fabsf(pair->diff_ab.avg) >= 1 && pair->spins_avg.avg >= 1) { in tst_fzsync_pair_update()
481 per_spin_time = fabsf(pair->diff_ab.avg) / pair->spins_avg.avg; in tst_fzsync_pair_update()
482 time_delay = drand48() * (pair->diff_sa.avg + pair->diff_sb.avg) in tst_fzsync_pair_update()
483 - pair->diff_sb.avg; in tst_fzsync_pair_update()
491 (int)(pair->diff_sb.avg / per_spin_time) + pair->delay_bias, in tst_fzsync_pair_update()
492 (int)(pair->diff_sa.avg / per_spin_time) - pair->delay_bias); in tst_fzsync_pair_update()