Commit 8896813c authored by Davis King's avatar Davis King

Fixed bug in knn code.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403590
parent 6e8323ad
...@@ -144,7 +144,7 @@ namespace dlib ...@@ -144,7 +144,7 @@ namespace dlib
// [begin_j, end_j) == the range in edges that contains neighbors of samples[j] // [begin_j, end_j) == the range in edges that contains neighbors of samples[j]
for (unsigned long i = 0; i < samples.size(); ++i) for (unsigned long i = 0; i < samples.size(); ++i)
{ {
begin_j = begin_i + 1; begin_j = begin_i + k;
end_j = begin_j + k; end_j = begin_j + k;
for (unsigned long j = i+1; j < samples.size(); ++j) for (unsigned long j = i+1; j < samples.size(); ++j)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment