Home
last modified time | relevance | path

Searched refs:invN (Results 1 – 2 of 2) sorted by relevance

/device/google/contexthub/firmware/os/drivers/tilt_detection/
Dtilt_detection.c87 float invN; in algoUpdate() local
107 invN = 1.0f / state->this_batch_num_samples; in algoUpdate()
108 state->this_batch_g[0] = state->this_batch_sample_sum[0] * invN; in algoUpdate()
109 state->this_batch_g[1] = state->this_batch_sample_sum[1] * invN; in algoUpdate()
110 state->this_batch_g[2] = state->this_batch_sample_sum[2] * invN; in algoUpdate()
/device/google/contexthub/firmware/os/algos/
Dtime_sync.c116 float invN = 1.0f / n; in time_sync_estimate_time1() local
119 mean_y += floatFromUint64(sync->time1[ii] - time1_base) * invN; in time_sync_estimate_time1()
120 mean_x += floatFromUint64(sync->time2[ii] - time2_base) * invN; in time_sync_estimate_time1()