Searched refs:x2_sum (Results 1 – 1 of 1) sorted by relevance
/linux/tools/testing/selftests/timers/ |
H A D | freq-step.c | 114 double x, y, r, x_sum, y_sum, xy_sum, x2_sum, r2_sum; in regress() local 117 x_sum = 0.0, y_sum = 0.0, xy_sum = 0.0, x2_sum = 0.0; in regress() 126 x2_sum += x * x; in regress() 129 *slope = (xy_sum - x_sum * y_sum / n) / (x2_sum - x_sum * x_sum / n); in regress()
|