|
Algorithm 1 Improved statistical model for the simulation of soft responses based on the model proposed in [20]. |
-
1:
Input: K, , , , , , , , ,
-
2:
Output: ,
-
3:
create zero vector of length K ▷Variable initialization
-
4:
create zero vector of length K
-
5:
random sample using ▷ Sample number of unstable bits and bit errors
-
6:
random sample using
-
7:
select U random indices from R ▷ Determine positions of unstable bits and bit errors
-
8:
select E random indices from R
-
9:
for each index i in do ▷ Simulate unstable bits
-
10:
random sample using ▷ Sample LLR value
-
11:
if then ▷ Generate simulated response
-
12:
-
13:
else
-
14:
-
15:
end if
-
16:
if then ▷ Generate reference response
-
17:
-
18:
else if then
-
19:
-
20:
else
-
21:
-
22:
end if
-
23:
end for
-
24:
for each index j in do ▷ Simulate bit errors
-
25:
random sample using ▷ Sample LLR value
-
26:
if then ▷ Generate simulated response
-
27:
-
28:
else
-
29:
-
30:
end if
-
31:
if then ▷ Generate reference response
-
32:
-
33:
else if then
-
34:
-
35:
else
-
36:
-
37:
end if
-
38:
end for
-
39:
for each remaining index k in R not in do ▷ Generate stable response
-
40:
-
41:
-
42:
end for
-
43:
-
44:
-
45:
return ,
|