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 slope. If N is less the minimum returns NaN
Definizione alla linea 128 del file statistics.h.
131 slope = (N*sum_xy-sum_x*sum_y)/(N*sum_x*sum_x-sum_x2);
132 else slope = sqrt(-1);