Skip to main content
. 2020 Nov 4;20(21):6287. doi: 10.3390/s20216287
Algorithm 2 Predicting the probability of ui indirectly contacting a Wi-Fi AP within a time constraint
Input: the starting region rs, the starting time interval t, the stop time interval te.
Output: piI
Initialize: piI=0,ps(t)=1
1: for every historical records of ui do
2:  if ((t<tj<te)&(nj>x)) then
3:   Calculating pjj(tj) using (4);
4:   Calling Algorithm 1(rj,tj,te) to get pjD;
5:   piI+=pjj(tj)·pjD;
6:  end if
7: end for
8: return piI;