PGomes92 / pyhrv

Python toolbox for Heart Rate Variability
BSD 3-Clause "New" or "Revised" License
271 stars 77 forks source link

default binsize for triangular_index() and tinn() should be 7.8125 instead of 7.815 #4

Closed gouzhuang closed 5 years ago

gouzhuang commented 5 years ago

in triangular_index() and tinn(), the default value for binsize was set to 7.815, however the correct value should be 7.8125(1000/128).

PGomes92 commented 5 years ago

You're absolutely right. I had the correct bin size of 7.815 in the docstring, but had the typo in the input parameters. I just updated the file and fixed that error.

Many thanks for pointing it out!

Edit: Note that it has been changed in the repository but not in the version available via PyPi. This will be fixed with the next udpate.