Biomedical Engineering Reference
In-Depth Information
Appendix III
The algorithm steps for zero sequence extraction from encoded (compressed) ECG
p: Source array; q: Derived array
m: total number of elements
i=1; j=1;
1. if p(i) = 255 and p(i+1) >200 go to step 4
2. q(j) = p(i)
3. i = i+1; j = j+1; go to step 7
4. n= p(i+1) - 200
% computing number of successive zero elements
5. put q(j) to q(j+ n) elements = 0
6. i = i+1; j = j+n+1
7. if i < m go to step 1
8. stop
Appendix IV
The algorithm steps for magnitude and sign decoding from encoded (compressed)
ECG
q: starting array; r: derived array
i=1; j=1
1. q(i) decode as sign byte
2. i = i+1
3. if q(i) > 100 then go to step 8
4. r(j)= left nibble of q(i)
5. r(j+1)= right nibble of q(i)
6. j= j+2; i= i+1
7. go to step 10
8. r(j) = q(i)-100, r(j+1) = q(i+1)-100
9. j = j+2; i = i+2
10. if j 8 group complete, go to step 1 for next group decoding
11. go to step 3
Search WWH ::




Custom Search