Here is my implementation of your library for use with encoders on a robot.
https://github.com/DannyMoses/Neural..._implementaion
It's definitely not very polished(I basically copied your example). Am I doing it right? I don't have a robot to test this on right now so I would value any feedback. I also just want to say that I think this is probably the future of FRC programming right here.