Detecting patterns in accelerometer

Sooooooo ! I’m kind of stuck, so I figured I’d ask around for some help :smile: I need to detect certain patterns/motions with an accelerometer and from what I’ve read, the two more common methods are dynamic time warping and hidden markov model. Procedural programming isn’t exactly my strong point so I’ve been searching for some libraries that have methods which could help me. How could I import these libraries to the spark score ? I’ve also noticed that the libraries themselves include files which I don’t think are accessible such as

include string
include cmath
include vector
include cassert>

and if anyone knows a cool implementation of a motion detection system through use of accelerometer in a spark core then please feel free to let me know :smiley:

There was a discussion about a project a while ago that needed to interpret accelerometer readings in a similar way