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
// u∈Ue means that MD u is within the coverage of MEC server e, where Ue denotes the set of MDs within the coverage of e
// e′∈Ee 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:  θtempe←0;
2:  for u in Ue do 
3:      θtempe←θtempe+θu;
4:  end for
5:  θtempe←θtempe/Ue;
6:  count←get_MD_nume;
7:  θe←count*θtempe;
8:  for e′ in Ee do
9:      ifget_MD_nume′>0 then
10:          θe←θe+get_MD_nume′*θtempe′;
11:          count←count+get_MD_nume′;
12:      end if
13:  end for
14:  θe←θe/count;
15:  return θe;