Require: Input parameters x
|
Ensure: Computed values for tap,
,
,
|
1: # Initialize core function for computing transmission probabilities |
2:
|
3:
|
4: function E(
) |
5: return
|
6: end function
|
7:
|
8: if
then
|
9:
|
10: else
|
11:
|
12: end if
|
13:
|
14: if
then
|
15:
|
16: else
|
17:
|
18: end if
|
19:
|
20: return
outcome
|
21: # Fixed Point Iteration |
22:
array of zeros with size 4 |
23:
scipy.optimize.fixed_point(core_function, initial_guess) |
24:
|
25: # Transmission times |
26:
|
27:
|
28:
|
29: # Probabilities of having a certain outcome at a given slot |
30:
|
31:
|
32:
|
33:
|
34:
|
35:
|
36:
|
37:
|
38: # UL and DL throughput |
39:
|
40:
|
41:
|
42:
|
43:
|
44:
|
45:
|
46:
|
47:
|
48:
|
49: # Head-of-line |
50:
|