Why all the bit shifting
danieldeesousa opened this issue · 1 comments
danieldeesousa commented
Hi there,
I am using this algorithm and it has been working fine for me so far but I am trying to understand how it actually works.
On line 138 of the heartrate.cpp source file, what is the purpose of performing so many bit shifts, especially the bit shift to the right by 4.
I have some experience with FIR filters and basic DSP but am confused on the purpose of this.
Thanks,
DD
nseidle commented
heartrate.cpp is Maxim's library. It would be best to contact them for their logic.