y_sum             114 tools/testing/selftests/timers/freq-step.c 	double x, y, r, x_sum, y_sum, xy_sum, x2_sum, r2_sum;
y_sum             117 tools/testing/selftests/timers/freq-step.c 	x_sum = 0.0, y_sum = 0.0, xy_sum = 0.0, x2_sum = 0.0;
y_sum             124 tools/testing/selftests/timers/freq-step.c 		y_sum += y;
y_sum             129 tools/testing/selftests/timers/freq-step.c 	*slope = (xy_sum - x_sum * y_sum / n) / (x2_sum - x_sum * x_sum / n);
y_sum             130 tools/testing/selftests/timers/freq-step.c 	*intercept = (y_sum - *slope * x_sum) / n;