From c3a33ca15847a394c757f19bd145a37a6a7519fb 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 02445c8..ba961ca 100644 --- a/pypg/features.py +++ b/pypg/features.py @@ -967,7 +967,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?