Skip to main content
. 2023 Feb 16;23(4):2243. doi: 10.3390/s23042243
Algorithm 2 FDRT’s MEC Server Parameter Aggregation.
INPUT: mobile device agent parameters θu
OUTPUT: global model parameter θe
// uUe means that MD u is within the coverage of MEC server e, where Ue denotes the set of MDs within the coverage of e
// eEe means that MEC server e is a server near e, where Ee denotes the set of servers near e
// get_MD_nume denotes the number of MDs within range of MEC server e
1:  θtempe0;
2:  for u in Ue do 
3:      θtempeθtempe+θu;
4:  end for
5:  θtempeθtempe/Ue;
6:  countget_MD_nume;
7:  θecount*θtempe;
8:  for e in Ee do
9:      ifget_MD_nume>0 then
10:          θeθe+get_MD_nume*θtempe;
11:          countcount+get_MD_nume;
12:      end if
13:  end for
14:  θeθe/count;
15:  return θe;