tools: convert gnuplot data to self-executable scripts

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools: print the unitless gain for pointer acceleration too

Unitless gain is simply speed(out)/speed(in), as used in [1].

[1] G. Casiez & N. Roussel. "No more bricolage! Methods and tools to
characterize, replicate and compare pointing transfer functions." In
Proceedings of UIST'11, p. 603-614, October 2011. ACM

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools: increase precision for ptraccel debug output

This matters a lot in the graphs, making the data points smoother and showing
the actual curves as well.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools: pass the step parameter into the speed mapping function

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools: make the "speed" mode the default for the ptraccel debug tool

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools: ptraccel-debug: change the sequence mode to be explicit

No more auto-detection.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools: print result of simpson's rules smoothing

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools: allow custom sequences for mode velocity too

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools: ptraccel: use simple index advancing when mapping speed

Otherwise indices may be skipped on rounding errors.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools: ptraccel: fix gain calculation to make more sense

Speed/base_speed gives us meaningful data.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
filter: add helper comments about units

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools: ptraccel: the velocity diagram x axix is units/ms

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools: ptraccel map the speed in m/s into the accel function

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools: ptraccel: switch to mm/s instead of m/s

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools: ptraccel: improve a couple of prints for gnuplot

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
accel_profile_smooth_simple: Cleanup

Cleanup the code a bit, and make sure accel is at least 1.0 .

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
accel_profile_smooth_simple: Fix jump in acceleration curve

There was an error in the value passed to the second calc_penumbral_gradient
call causing a jump in the acceleration curve. This commit fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
accel_profile_smooth_simple: Make 0.0-1.0 accel range depend on threshold

Instead of always going from an accel of 0.0 to 1.0 between a velocity of
0.0 and 1.0, make the lead-in length of the curve depend on the threshold
setting, using half of the threshold for the lead-in.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
accel_profile_smooth_simple: Make it take longer to reach max accel

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
accel_profile_smooth_simple: Stretch alternative 1

Signed-off-by: Hans de Goede <hdegoede@redhat.com>