How do you detect spike in data?
Basically, determine the average difference between data points. If my data starts to exceed some multiple of that value consecutively then most likely there is a spike occurring.
What is Spike detection algorithm?
The spike detection algorithm removed events in the refractory period (Hill et al., 2011) if spikes appeared on the same electrode by finding the largest amplitude event within a temporal window of 1 ms. However, the same spike could still be detected on different electrodes and assigned a similar location.