Home
last modified time | relevance | path

Searched refs:inv (Results 1 – 3 of 3) sorted by relevance

/device/google/contexthub/firmware/os/algos/common/math/
Dkasa.c62 float inv = 1.0f / kasa->nsamples; in kasaNormalize() local
64 kasa->acc_x *= inv; in kasaNormalize()
65 kasa->acc_y *= inv; in kasaNormalize()
66 kasa->acc_z *= inv; in kasaNormalize()
67 kasa->acc_w *= inv; in kasaNormalize()
69 kasa->acc_xx *= inv; in kasaNormalize()
70 kasa->acc_xy *= inv; in kasaNormalize()
71 kasa->acc_xz *= inv; in kasaNormalize()
72 kasa->acc_xw *= inv; in kasaNormalize()
74 kasa->acc_yy *= inv; in kasaNormalize()
[all …]
/device/google/contexthub/firmware/os/algos/calibration/accelerometer/
Daccel_cal.c240 float inv = 0.0f; in accelStillnessDetection() local
259 inv = 1.0f / asd->nsamples; in accelStillnessDetection()
266 asd->var_x = (asd->acc_xx - (asd->acc_x * asd->acc_x) * inv) * inv; in accelStillnessDetection()
267 asd->var_y = (asd->acc_yy - (asd->acc_y * asd->acc_y) * inv) * inv; in accelStillnessDetection()
268 asd->var_z = (asd->acc_zz - (asd->acc_z * asd->acc_z) * inv) * inv; in accelStillnessDetection()
273 asd->mean_x = asd->acc_x * inv; in accelStillnessDetection()
274 asd->mean_y = asd->acc_y * inv; in accelStillnessDetection()
275 asd->mean_z = asd->acc_z * inv; in accelStillnessDetection()
294 float inv = 0.0f; in accelGoodData() local
364 inv = 1.0f / ac1->akf.nsamples; in accelGoodData()
[all …]
/device/google/contexthub/firmware/os/algos/calibration/diversity_checker/
Ddiversity_checker.c188 float inv = 1.0f / diverse_data->num_points; in diversityCheckerNormQuality() local
189 float var = (acc_norm_square - (acc_norm * acc_norm) * inv) * inv; in diversityCheckerNormQuality()
195 diverse_data->diversity_dbg.mean_log = acc_norm * inv; in diversityCheckerNormQuality()