Hi,
Want clarification on following shared code block , Where heart rate in range 1.6Hz to 4Hz is estimated using FFT spectral estimation method .
if the peak detected in range 1.6Hz to 4Hz is less than 2Hz instead of selecting the peak with maximum confidence vale ,the peak closed to the estimated value is getting selected for final Heart rate .What is the logic behind this to do this Kindly explain.
Also in UI code for heart rate decision this heart rate in range 1.6Hz to 4Hz i.e heart rate in BPM 96 to 240 BPM is input to the median filter in UI code when the confidence value is above Threshold.Kindly explain the logic for this in signal processing.