|
Algorithm 4 Simulated tracking |
-
1:
procedure Tracking(, , , )
-
2:
Group all readings by frequency ▹ 3 s, 5 s, or 10 s
-
3:
for each frequency group i do
-
4:
if Group i not Empty then
-
5:
Group by
-
6:
for each Beacon group j do
-
7:
if then
-
8:
= MovingAvg(, 2)
-
9:
[j] = getCurrentFingerprint()
-
10:
[i][‘location’] = nearestNeighbor(, )
-
11:
[i][‘true_loc’] = round([‘true_loc’].mean())
-
12:
return
|