rhenanbartels / hrv

A Python package for heart rate variability analysis
BSD 3-Clause "New" or "Revised" License
196 stars 58 forks source link

Fix _pnn50: Use float division and correct array len #10

Open riccioclista opened 6 years ago

riccioclista commented 6 years ago

Integer division has always yielded 0. The array length must be taken from the diff array (which is 1 less than rri)

rhenanbartels commented 6 years ago

Hi @riccioclista, thank you very much for your contribution. Could you please add a unit test that reproduces this error?