Biomedical Engineering Reference
In-Depth Information
Appendix V
Generation of original ECG sampled by de-normalization and successive addition:
Normalization constant = k;
r = source array;
s = destination array;
i=0;
i1=0;
i2=2;
% generation of the first element of each block of 1000 elements
1. s1(i+1) = (1/100*a)*[r(i+i1+1)*1000+r(i+i1+2)*100+r(i+i1+3)]
2. s(i+1) = s1;
% generation of elements 2-999 of each block
3. s1(i+i2) = r(i+i1+i2+2) / k;
4. s(i+1) = s1(i+i2)+s(i+i2-1);
% successive addition of SSDs
5. i2 = i2+1;
6. if t2 < 1000, go to step 3
7. i = i+1000; i1= i1+2;
8. go to step 1 for next group of 1000 elements
Search WWH ::




Custom Search