summaryrefslogtreecommitdiffstats
path: root/include/utils/threads.h
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-09-14 10:53:18 -0700
committerJeff Brown <jeffbrown@google.com>2011-09-14 19:16:37 -0700
commit73aaf0d8d22fa18e9336bdfcb97a01a242d17a23 (patch)
tree0a59bd050b7fbb36008828517d29475ca83d7692 /include/utils/threads.h
parent0984130e74f9f4d72f23051fe583f25fdd26eebb (diff)
downloadframeworks_native-73aaf0d8d22fa18e9336bdfcb97a01a242d17a23.zip
frameworks_native-73aaf0d8d22fa18e9336bdfcb97a01a242d17a23.tar.gz
frameworks_native-73aaf0d8d22fa18e9336bdfcb97a01a242d17a23.tar.bz2
Velocity Tracker II: The Revenge of Velocity Tracker
Bug: 5265529 Rewrote the velocity tracker to fit a polynomial curve to pointer movements using least squares linear regression. The velocity is simply the first derivative of this polynomial. Clients can also obtain an Estimator that describes the complete terms of the estimating polynomial including the coefficient of determination which provides a measure of the quality of the fit (confidence). Enhanced PointerLocation to display the movement curve predicted by the estimator in addition to the velocity vector. By default, the algorithm computes a 2nd degree (quadratic) polynomial based on a 100ms recent history horizon. Change-Id: Id377bef44117fce68fee2c41f90134ce3224d3a1
Diffstat (limited to 'include/utils/threads.h')
0 files changed, 0 insertions, 0 deletions