Skip to main content
. 2022 Apr 30;22(9):3446. doi: 10.3390/s22093446
Algorithm 1. Single example generator.
1 S ← 32 random identities from 1 random database
2 while size of S is less than 32:
3    db ← random database
4    k ← random identity from db
5    if k is not in S:
6        add identity to S
7 q random identity from S
8 J ← empty set
9 for each k in S:
10    if k is equal q:
11       Gk, Gq ← 2 random ECG segments without overlapped
12    else:
13       Gk ← random ECG segment
14     add Gk to J
15 filter J and Gq
16 standardize J and Gq
17 return J, Gq, q