|
Algorithm 2 Calculate fingerprint for a set of RSSI values of a beacon |
-
1:
procedure getFingerprint(Int , Int , DataFrame )
-
2:
fingerprint[‘mean’] = RSSI[‘RSSI’].mean()
-
3:
fingerprint[‘timestamp’] = RSSI[‘timestamp’].mean() ▹ Average the timestamps
-
4:
if then
-
5:
fingerprint[‘weight’] = 0.75
-
6:
else
-
7:
fingerprint[‘weight’] = 1.0
-
8:
return
|