Home
last modified time | relevance | path

Searched refs:ZSL_ABS (Results 1 – 13 of 13) sorted by relevance

/zscilib-3.4.0/src/orientation/fusion/
Dcomplementary.c29 if (ZSL_ABS(zsl_quat_magn(q)) < 1E-6) { in zsl_fus_comp()
45 if ((m != NULL) && (ZSL_ABS(zsl_vec_norm(m)) > 1E-6) && in zsl_fus_comp()
46 (a != NULL) && (ZSL_ABS(zsl_vec_norm(a)) > 1E-6)) { in zsl_fus_comp()
Daqua.c30 if (ZSL_ABS(zsl_quat_magn(q)) < 1E-6) { in zsl_fus_aqua()
46 if ((a != NULL) && ZSL_ABS(zsl_vec_norm(a)) > 1E-6) { in zsl_fus_aqua()
93 if ((m != NULL) && ZSL_ABS(zsl_vec_norm(m)) > 1E-6) { in zsl_fus_aqua()
161 zsl_real_t m_e = ZSL_ABS(n - gr) / gr; /* Magnitude error. */ in zsl_fus_aqua_alpha_init()
Dsaam.c30 if ((m == NULL) || (ZSL_ABS(zsl_vec_norm(m)) < 1E-6) || in zsl_fus_saam()
31 (a == NULL) || (ZSL_ABS(zsl_vec_norm(a)) < 1E-6)) { in zsl_fus_saam()
Dmahony.c31 if (ZSL_ABS(zsl_quat_magn(q)) < 1E-6) { in zsl_fus_mahony_imu()
39 if ((a != NULL) && ZSL_ABS(zsl_vec_norm(a)) > 1E-6) { in zsl_fus_mahony_imu()
129 if (ZSL_ABS(zsl_quat_magn(q)) < 1E-6) { in zsl_fus_mahony()
136 if ((m == NULL) || (ZSL_ABS(zsl_vec_norm(m)) < 1E-6)) { in zsl_fus_mahony()
142 if ((a != NULL) && ZSL_ABS(zsl_vec_norm(a)) > 1E-6) { in zsl_fus_mahony()
Dmadgwick.c27 if (ZSL_ABS(zsl_quat_magn(q)) < 1E-6) { in zsl_fus_madgwick_imu()
43 if ((a != NULL) && ZSL_ABS(zsl_vec_norm(a)) > 1E-6) { in zsl_fus_madgwick_imu()
128 if (ZSL_ABS(zsl_quat_magn(q)) < 1E-6) { in zsl_fus_madgwick()
135 if ((m == NULL) || (ZSL_ABS(zsl_vec_norm(m)) < 1E-6)) { in zsl_fus_madgwick()
149 if ((a != NULL) && ZSL_ABS(zsl_vec_norm(a)) > 1E-6) { in zsl_fus_madgwick()
/zscilib-3.4.0/src/orientation/
Dquaternions.c31 if (ZSL_ABS(c) < epsilon) { in zsl_quat_val_is_equal()
67 if (ZSL_ABS(m) < 1E-6) { in zsl_quat_to_unit()
251 if (ZSL_ABS(m) < 1E-6) { in zsl_quat_inv()
294 if (ZSL_ABS(qb->r) > 1E-6) { in zsl_quat_rot()
408 if (ZSL_ABS(dot - 1.0) < 1E-6) { in zsl_quat_slerp()
417 if (ZSL_ABS(dot + 1.0) < 1E-6) { in zsl_quat_slerp()
530 if (ZSL_ABS(gl - 0.5) < 1E-6 || ZSL_ABS(gl + 0.5) < 1E-6) { in zsl_quat_to_euler()
617 if (ZSL_ABS(m->data[7] - m->data[5]) > 1E-6) { in zsl_quat_from_rot_mtx()
619 q->i *= (m->data[7] - m->data[5]) / ZSL_ABS(m->data[7] - m->data[5]); in zsl_quat_from_rot_mtx()
622 if (ZSL_ABS(m->data[2] - m->data[6]) > 1E-6) { in zsl_quat_from_rot_mtx()
[all …]
Dcompass.c67 if (ZSL_ABS(m->data[1]) < 1E-6) { in zsl_comp_magn_north()
/zscilib-3.4.0/include/zsl/
Dzsl.h60 #define ZSL_ABS fabsf macro
84 #define ZSL_ABS fabs macro
/zscilib-3.4.0/src/
Dstatistics.c79 if (ZSL_ABS(sumw) < 1E-6) { in zsl_sta_weighted_mean()
124 if (ZSL_ABS(ts.data[i] - t->data[g]) < 1E-6) { in zsl_sta_time_weighted_mean()
209 if (ZSL_ABS(sum - 1.0) > 1E-6) { in zsl_sta_weighted_median()
226 if (ZSL_ABS(lsum - 0.5) < 1E-6) { in zsl_sta_weighted_median()
333 sum += ZSL_ABS(vdm.data[i]); in zsl_sta_mean_abs_dev()
348 med.data[i] = ZSL_ABS(v->data[i] - median); in zsl_sta_median_abs_dev()
504 if (ZSL_ABS(det) < 1E-6) { in zsl_sta_mult_linear_reg()
545 if (ZSL_ABS(w->data[k]) < 1E-6) { in zsl_sta_weighted_mult_linear_reg()
587 if (ZSL_ABS(det) < 1E-6) { in zsl_sta_weighted_mult_linear_reg()
667 *err = ZSL_ABS(*val - *exp_val); in zsl_sta_abs_err()
[all …]
Dprobability.c108 if (ZSL_ABS(t) > 6.125) { in zsl_prob_erf_inv()
286 if (ZSL_ABS(sum) > 1E-6) { in zsl_prob_entropy()
Dmatrices.c209 m->data[i] = ZSL_ABS(m->data[i]); in zsl_mtx_unary_op()
1226 row += ZSL_ABS(mout->data[(i * m->sz_rows) + in zsl_mtx_balance()
1228 col += ZSL_ABS(mout->data[(j * m->sz_rows) + in zsl_mtx_balance()
/zscilib-3.4.0/src/physics/
Dsound.c86 *f = ZSL_ABS(fa - fb); in zsl_phy_sound_beat()
Doptics.c30 if (n1 < 0 || n2 <= 0 || ZSL_ABS(o) > 1) { in zsl_phy_opt_snell()