heartbeat
heartbeat copied to clipboard
added peak detection
using this c++ implementation of the using z-scores peak detection algorithm https://stackoverflow.com/questions/22583391/peak-signal-detection-in-realtime-timeseries-data/46998001#46998001
The added code draws an additional graph showing the peaks and troughs of the s_f curve. It also draws a filled circle every time the most recent peak value equals 1.
All this was done to get me one step closer to visualizing the onset of the live heart beat.
Thanks for the PR, @stephanschulz. I might take some time to merge this as I would prefer to make it optional - just very busy with other stuff at the moment.