Currently, when we have a draw in heart-rate peeks (if they are evenly close to the mean), we select the highest of the two. The complete heart-rate selection method will be as follows:
Select the peek after applying top-hat smoothing (if #peeks > 1, go to step 2)
Select the peek closest to the average of all peeks (if there are multiple 'winner' peeks, go to step 3)
Select the average of the two peeks closest two the average.
The reason for selecting the hear-rate using the top-hat kernel methods is because we'd like to know what happened the most often in the past measurement interval. Taking a simple average does not suffice, and taking the mode will yield invalid results if the heart-rates are distributed in a strange way.
Currently, when we have a draw in heart-rate peeks (if they are evenly close to the mean), we select the highest of the two. The complete heart-rate selection method will be as follows:
The reason for selecting the hear-rate using the top-hat kernel methods is because we'd like to know what happened the most often in the past measurement interval. Taking a simple average does not suffice, and taking the mode will yield invalid results if the heart-rates are distributed in a strange way.