Compute least square linear fit (no exception if only scalars where provided)
- Parametri
-
[in] | minimum | Minimum amount of accumulated data to perform the computation |
- Restituisce
- value of the intercept. If N is less the minimum returns NaN
Definizione alla linea 141 del file statistics.h.
144 intercept = (sum_y*sum_x2-sum_x*sum_xy)/(N*sum_x2-sum_x*sum_x);
145 else intercept = sqrt(-1);