From aadd9f9bc6f7cc4e56088ad5b1d616355407d0eb Mon Sep 17 00:00:00 2001 From: Florian Hermes <43293808+GoWithTheFlo95@users.noreply.github.com> Date: Thu, 28 Apr 2022 13:13:18 +0000 Subject: [PATCH] adapt nn_threshold --- pypg/features.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pypg/features.py b/pypg/features.py index 06de87a..76ff79a 100644 --- a/pypg/features.py +++ b/pypg/features.py @@ -968,7 +968,7 @@ def _temporal_hrv(ibi_series): raise Exception('Signal values not accepted, enter a pandas.Series or ndarray.') window = 5 - nn_threshold = 0.05 # TODO: @Ari: HOW TO SET THIS VALUE? > IBI_SERIES VALUES around 0.88 ish. Affect computation of nn_xx /// was 50 before + nn_threshold = 50 # TODO: @Ari: HOW TO SET THIS VALUE? > IBI_SERIES VALUES around 0.88 ish. Affect computation of nn_xx /// was 50 before # Prepare data instantaneous_hr = 60 / (ibi_series / 1000) # TODO: @Ari: why divided by 1000? from ms to s?