I am trying to measure the changes in heart rate throughout the continuous resting and exercise periods of my experiment. How can I calculate the mean heart rate of just the resting period, from approximately 0 to 120 seconds?
For reference, this is the filtered heart rate vs time graph.
To supply some background, I started from an ECG analog signal, found the R-wave peaks and calculated the RR interval. Using the RR interval, I was able to calculate heart rate. I filtered out the outliers of the raw heart rate plot, and thus came up with the graph that I linked. Thanks in advance!