Skip to content

Commit

Permalink
Remove offSet from positioning knn
Browse files Browse the repository at this point in the history
  • Loading branch information
razvangeangu committed Apr 14, 2018
1 parent dd21f53 commit e7fcfd1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Navigate/Model/Positioning/RGPositioning.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,10 @@ class RGPositioning: NSObject {
if accessPoint.uuid == currentAccessPoint.uuid {

// Compare their strength
if accessPoint.strength > currentAccessPoint.strength - 5 {
if accessPoint.strength < currentAccessPoint.strength + 5 {

// Increase the similarity value of the AP / Tile
matrix[Int(tile.row)][Int(tile.col)] += 1
}
if accessPoint.strength == currentAccessPoint.strength {

// Increase the similarity value of the AP / Tile
matrix[Int(tile.row)][Int(tile.col)] += 1
}
}
}
Expand Down

0 comments on commit e7fcfd1

Please sign in to comment.