Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BEGIN
- SET matchingCells to new Dictionary<int,int>
- FOR each probe in probes
- IF probe.networkStrength < minimumNetworkStrength
- CONTINUE
- FOR each record in records
- IF probe.bssid != record.bssid
- CONTINUE
- IF ABS(probe.networkStrength - record.networkStrength) > strengthDeviation
- CONTINUE
- IF matchingCells.contains(record.cellId)
- matchingCells[record.cellId] += 1
- ELSE
- matchingCells.add(record.cellId, 1)
- END FOR
- END FOR
- RETURN matchingCells.values.max()
- END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement