Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. BEGIN
  2. SET matchingCells to new Dictionary<int,int>
  3. FOR each probe in probes
  4.     IF probe.networkStrength < minimumNetworkStrength
  5.         CONTINUE
  6.     FOR each record in records
  7.         IF probe.bssid != record.bssid
  8.             CONTINUE
  9.         IF ABS(probe.networkStrength - record.networkStrength) > strengthDeviation
  10.             CONTINUE
  11.         IF matchingCells.contains(record.cellId)
  12.             matchingCells[record.cellId] += 1
  13.         ELSE
  14.             matchingCells.add(record.cellId, 1)
  15.     END FOR
  16. END FOR
  17. RETURN matchingCells.values.max()
  18. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement