I have some ideas on how to proceed with this. Lots of inspiration from HTM,
but a somewhat different approach.
First, I'd like to point out that my problem is not exactly like online
handwriting applications. In my applications the set of figures are simple and
limited. It is expected that
This invitation expires in 30 days. November 21, 2016 8:13:18 AM PST.
You have been invited to join asocsfhristofor2015
[https://groups.yahoo.com/group/asocsfhristofor2015/]. To accept this
invitation either reply to this mail with an empty message or go to:
https://groups.yahoo.com/i?i=zjqmk
Some results:

This shows the overlap with the current point on the canvas with each of the
possible figures, as a function of time. The last one is a clear winner here.
There is a signal for a longer span o