Searched refs:inv (Results 1 – 3 of 3) sorted by relevance
46 float inv = 1.0f / kasa->nsamples; in kasaNormalize() local48 kasa->acc_x *= inv; in kasaNormalize()49 kasa->acc_y *= inv; in kasaNormalize()50 kasa->acc_z *= inv; in kasaNormalize()51 kasa->acc_w *= inv; in kasaNormalize()53 kasa->acc_xx *= inv; in kasaNormalize()54 kasa->acc_xy *= inv; in kasaNormalize()55 kasa->acc_xz *= inv; in kasaNormalize()56 kasa->acc_xw *= inv; in kasaNormalize()58 kasa->acc_yy *= inv; in kasaNormalize()[all …]
188 float inv = 1.0f / diverse_data->num_points; in diversityCheckerNormQuality() local189 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()
235 float inv = 0.0f; in accelStillnessDetection() local254 inv = 1.0f / asd->nsamples; in accelStillnessDetection()261 asd->var_x = (asd->acc_xx - (asd->acc_x * asd->acc_x) * inv) * inv; in accelStillnessDetection()262 asd->var_y = (asd->acc_yy - (asd->acc_y * asd->acc_y) * inv) * inv; in accelStillnessDetection()263 asd->var_z = (asd->acc_zz - (asd->acc_z * asd->acc_z) * inv) * inv; in accelStillnessDetection()268 asd->mean_x = asd->acc_x * inv; in accelStillnessDetection()269 asd->mean_y = asd->acc_y * inv; in accelStillnessDetection()270 asd->mean_z = asd->acc_z * inv; in accelStillnessDetection()289 float inv = 0.0f; in accelGoodData() local359 inv = 1.0f / ac1->akf.nsamples; in accelGoodData()[all …]