hrv icon indicating copy to clipboard operation
hrv copied to clipboard

A Python package for heart rate variability analysis

Results 13 hrv issues
Sort by recently updated
recently updated
newest added

Hi everyone, I wanted to know - what is the normal range of HRV? Sometimes I see the value in 2 digits and sometimes the values are 1000+. I am...

When running `from hrv.rri import RRi` The error was [cannot import name 'MutableMapping' from 'collections'] Might want to change line 18 in rri.py to `from collections.abc import MutableMapping` (python 3.11.3)

Thanks for the awesome package! One small issue I spotted: the `threshold_filter` function seems to only filter values where the RRI is greater than $\text{local median} + \text{threshold}$, but not...

Currently, the results of the [`frequency_domain`](https://github.com/rhenanbartels/hrv/blob/3f813f6727ff693daccf2fd1a939a30a966f56e1/hrv/classical.py#L88) function are stored in a Python built-in dictionary. It would be a nice improvement if the results were stored in a custom **dict-like** class...

enhancement
help wanted

### Created a new class freq_domain. This class has three methods "getFeatures", "plot" and "getGraphDataPoints". ``` #Import modules: from freqAnalysis import freq_domain from hrv.rri import RRi #Dummy data: rri =...

When calculating rri_detrended with the smoothness priors method: `rri_detrended = smoothness_priors(rri, l=500, fs=4.0)` the rri_detrended values have a spike towards the end (see 2nd graph below) for both sample files...

bug

The cubic spline interpolation used in the threshold_filter function can generate negative values. These then cause the interpolated data set to fail validation. Here's some sample code: ``` from hrv.rri...

enhancement

Here's some sample code: ```from hrv.io import read_from_text from hrv.classical import frequency_domain from hrv.detrend import smoothness_priors from hrv.rri import RRi rr_vals = read_from_text('rest_rri.txt') smooth_detrended_rr_vals = smoothness_priors(rr_vals) smooth_fd_results = frequency_domain(smooth_detrended_rr_vals, method="ar",...

bug

Probably because of `plt.show()` the `plot` method of RRi the following snippet won't work properly in a Jupyter notebook: ```python fig, ax = rri_1.plot() rri_2.plot(ax=ax) ```

enhancement

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