Apply maths macros and type changes ahead of HAL
This commit is contained in:
parent
0c616700f3
commit
6c45d0fd81
26 changed files with 181 additions and 166 deletions
|
|
@ -59,7 +59,7 @@ int finish_incremental_LSF(struct linear_fit_data *lsf) {
|
|||
lsf->xzbar = lsf->xzbar / N - lsf->xbar * lsf->zbar;
|
||||
const float DD = lsf->x2bar * lsf->y2bar - sq(lsf->xybar);
|
||||
|
||||
if (fabs(DD) <= 1e-10 * (lsf->max_absx + lsf->max_absy))
|
||||
if (FABS(DD) <= 1e-10 * (lsf->max_absx + lsf->max_absy))
|
||||
return 1;
|
||||
|
||||
lsf->A = (lsf->yzbar * lsf->xybar - lsf->xzbar * lsf->y2bar) / DD;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue