e.g. we might want to trigger stimulation on the ramp up rather than at the peak?
[ ] Would be ideal to match current literature - check what the current recommendations/ standard approach is.
[ ] Have the option to stimulate slightly before the peak so that we don't miss it due to delays and ramp up, want the strongest stim at the peak?
(so might want to predict the peak based on previous time points and guesstimate next peak and stimulate before this estimated point?)
[ ] Refine our peak stim algorithm as it is very vulnerable to noise
[ ] Slightly before the peak so that we don't miss it due to delays and ramp up, want the strongest stim at the peak?
so might want to predict the peak based on previous time points and guesstimate next peak and stimulate before this estimated point?
[ ] Want to filter out any peaks in a certain frame from another peak? - to remove spurious ones.
[ ] Explore sliding window as a way to deal with noise (smooth/ average out over a sliding window?)
e.g. we might want to trigger stimulation on the ramp up rather than at the peak?