|
Algorithm 1: Pseudocode for boundary cut-off point of LSFZ and HSFZ. |
|
Input:: LoRa device success probability
Input:N: number of IoT LoRa devices
Input:x: LoRa device’s location
Input: BW: bandwidth
Input: SF: spreading factor of a LoRa device
Output: Boundary point LSFZ and HSFZ,
-
1:
Initialization
-
2:
-
3:
-
4:
-
5:
for: 100 do
-
6:
for
i=1: N do
-
7:
Calculate in Equation (13)
-
8:
Calculate
-
9:
-
10:
end for
-
11:
Calculate =
-
12:
if < then
-
13:
=
-
14:
=
-
15:
end if
-
16:
end for
-
17:
return
|