Skip to content

Commit

Permalink
Merge pull request #17 from TimoSci/performance
Browse files Browse the repository at this point in the history
performance optimization in nearest neighbor search
  • Loading branch information
andreasdominik authored Dec 11, 2019
2 parents 51b9073 + 57cdc90 commit 513194d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.jl
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function findWinner(cod, sampl)

for i in 1:n

d = euclidean(sampl, cod[i,:])
d = sqeuclidean(sampl, cod[i,:])
if (d < dist)
dist = d
winner = i
Expand Down

0 comments on commit 513194d

Please sign in to comment.