Searched refs:inv (Results 1 – 3 of 3) sorted by relevance
62 float inv = 1.0f / kasa->nsamples; in kasaNormalize() local64 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 …]
240 float inv = 0.0f; in accelStillnessDetection() local259 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() local364 inv = 1.0f / ac1->akf.nsamples; in accelGoodData()[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()