elm-gamepad icon indicating copy to clipboard operation
elm-gamepad copied to clipboard

Automatic remapping uses least squares on sigmoid to detect activated input

Open xarvh opened this issue 6 years ago • 0 comments

Use a robust non-linear regression against a sigmoid function to detect the input actually activated by the user during automated remapping.

This might overcome both https://github.com/xarvh/elm-gamepad/issues/41 and https://github.com/xarvh/elm-gamepad/issues/25 but needs to be tested extensively as it would be a much more complicated algorithm, more prone to unexpected behaviour.

https://scipy-cookbook.readthedocs.io/items/robust_regression.html https://github.com/scipy/scipy/blob/v1.3.0/scipy/optimize/_lsq/least_squares.py#L240-L939

xarvh avatar Jul 16 '19 12:07 xarvh