Skip to content

Commit b4cd784

Browse files
Add files via upload
1 parent fc04d39 commit b4cd784

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

malak.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
screen.fill((155,155,55))
2424
myFont = pygame.font.SysFont("Times New Roman", 18)
2525

26-
Fs = 100
26+
Fs = 200
2727
T = 4
2828
nSamples = math.ceil(Fs * T)
2929
HR_min = 40
@@ -76,17 +76,14 @@
7676
if (i_is_peak == 1):
7777
IBI_samples.append(i)
7878

79-
# Remove neighbouring samples with equal max values
80-
# ...
81-
82-
print(IBI_samples)
79+
# print(IBI_samples)
8380

8481
IBI_sum = 0
8582
IBI_N = 0
8683
for i in range(len(IBI_samples) - 1):
8784
this_IBI_samples = IBI_samples[i + 1] - IBI_samples[i]
8885
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) + "]")
9087
if (this_IBI < IBI_min or this_IBI > IBI_max):
9188
continue
9289
IBI_sum = IBI_sum + this_IBI

0 commit comments

Comments
 (0)