ATTENTION: In Darwin all averaged heartrate values (HR over x beats) is calculated from the average interval length and is NOT the average of "single beat heart rates".
In a formula it's HR = 60 / Mean-RR-Interval-over-x-beats.
In other words: if you know, that in i seconds there were x beats, then the HR = 60*x/i [bpm].
So again: ATTENTION: The averaged HR is NOT the average of the the contained HR-values!! So the assumption HR = 60/( (Int1+Int2+Int3)/3 ) = (HR1+HR2+HR3) / 3 is WRONG!! That's mathematically not he same.
Example 1
The three RR-intervals 1000ms, 500ms and 666ms correspond to heart rates of 60, 120 and 90bpm. To calculate the mean HR for these 3 intervals, first determine the mean interval length: (1000+500+666ms) / 3 = 2.166 / 3 = 0.72 sec. MeanHR = 60 / 0,72 = 83bpm. If you would calculate the mean HR as mean value of the 3 bpm values you would get (60+90+120)/3 = 90bpm.
Example 2
RR-intervals 1000ms, 1000ms and 100ms -> 60, 60 and 600bpm. Calculation: MeanRR = (1000+1000+100ms) / 3 = 2.1 / 3 = 0.7 sec. MeanHR = 60 / 0,70 = 86bpm. Wrong calculation: (60+60+600)/3 = 240bpm.