File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 23
23
screen .fill ((155 ,155 ,55 ))
24
24
myFont = pygame .font .SysFont ("Times New Roman" , 18 )
25
25
26
- Fs = 100
26
+ Fs = 200
27
27
T = 4
28
28
nSamples = math .ceil (Fs * T )
29
29
HR_min = 40
76
76
if (i_is_peak == 1 ):
77
77
IBI_samples .append (i )
78
78
79
- # Remove neighbouring samples with equal max values
80
- # ...
81
-
82
- print (IBI_samples )
79
+ # print(IBI_samples)
83
80
84
81
IBI_sum = 0
85
82
IBI_N = 0
86
83
for i in range (len (IBI_samples ) - 1 ):
87
84
this_IBI_samples = IBI_samples [i + 1 ] - IBI_samples [i ]
88
85
this_IBI = this_IBI_samples / Fs
89
- print (str (this_IBI ) + " [" + str (IBI_min ) + ", " + str (IBI_max ) + "]" )
86
+ # print(str(this_IBI) + " [" + str(IBI_min) + ", " + str(IBI_max) + "]")
90
87
if (this_IBI < IBI_min or this_IBI > IBI_max ):
91
88
continue
92
89
IBI_sum = IBI_sum + this_IBI
You can’t perform that action at this time.
0 commit comments