# Moving average of events per minute

Suppose I have a list of times corresponding to event onset over the course of about an hour (in my case, skin conductance responses from electrodermal activity measurements). The amplitude of the spikes is arbitrary.

I would like to see when these events are most frequent as a measure of spikes per minute. I am thinking I'd like to do this using a moving average of the sum of spikes per minute.

I am thinking I can assign a value of 1 at each time point of event onset and then sum them up over the preceding minute, but don't know how to do this with a moving average.

edit: I suppose I can also calculate the frequency of points via Fourier, but not sure how to plot the change in frequency as a function of time.

• What have you tried up to the point of plotting the change in frequency as a function of time?
– JimB
Apr 14, 2019 at 5:42
• I haven't actually plotting change in frequency as a function of time yet. Do you know where I could start with this? Apr 18, 2019 at 5:20

clusters=Gather[data,Abs[#1-#2]<60&]