Skip to content

Commit

Permalink
adapt nn_threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
GoWithTheFlo95 authored and Florian Hermes committed May 10, 2022
1 parent 82967d9 commit c3a33ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypg/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit c3a33ca

Please sign in to comment.