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
|
|
@ -65,8 +65,8 @@ void inline incremental_WLSF(struct linear_fit_data *lsf, const float &x, const
|
|||
lsf->xzbar += w * x * z;
|
||||
lsf->yzbar += w * y * z;
|
||||
lsf->N += w;
|
||||
lsf->max_absx = max(fabs(w * x), lsf->max_absx);
|
||||
lsf->max_absy = max(fabs(w * y), lsf->max_absy);
|
||||
lsf->max_absx = max(FABS(w * x), lsf->max_absx);
|
||||
lsf->max_absy = max(FABS(w * y), lsf->max_absy);
|
||||
}
|
||||
|
||||
void inline incremental_LSF(struct linear_fit_data *lsf, const float &x, const float &y, const float &z) {
|
||||
|
|
@ -79,8 +79,8 @@ void inline incremental_LSF(struct linear_fit_data *lsf, const float &x, const f
|
|||
lsf->xybar += x * y;
|
||||
lsf->xzbar += x * z;
|
||||
lsf->yzbar += y * z;
|
||||
lsf->max_absx = max(fabs(x), lsf->max_absx);
|
||||
lsf->max_absy = max(fabs(y), lsf->max_absy);
|
||||
lsf->max_absx = max(FABS(x), lsf->max_absx);
|
||||
lsf->max_absy = max(FABS(y), lsf->max_absy);
|
||||
lsf->N += 1.0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue