Searched refs:x_sum (Results 1 – 1 of 1) sorted by relevance
/openbmc/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() 123 x_sum += x; in regress() 129 *slope = (xy_sum - x_sum * y_sum / n) / (x2_sum - x_sum * x_sum / n); in regress() 130 *intercept = (y_sum - *slope * x_sum) / n; in regress()
|