Home | History | Annotate | Download | only in usb

Lines Matching defs:weighted

64  * computes a weighted average over all possible positions, weighted by
65 * the pressure at that position. The weighted average is computed in
70 * computes a weighted average of the old raw position, the old
1787 unsigned int weighted[UATP_MAX_SENSORS];
1809 * . each weighted[j] is at most UATP_MAX_SENSORS^2 * UATP_MAX_ACC,
1811 * . each weighted[j] * ratio is at most
1831 * threshold. Compute the finger's position as the weighted
1832 * average of positions, weighted by the pressure at that
1837 memset(weighted, 0, sizeof(weighted));
1892 weighted[n_fingers - 1] += (i * v);
1895 CHECK_(weighted[n_fingers - 1] <=
1905 ("finger at %u\n", ((weighted[i] * ratio) / total[i])));
1906 sum += ((weighted[i] * ratio) / total[i]);