Fixed bug in knn code.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403590
This commit is contained in:
Davis King 2010-05-10 22:48:24 +00:00
parent 6e8323adcf
commit 8896813cc2
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ namespace dlib
// [begin_j, end_j) == the range in edges that contains neighbors of samples[j]
for (unsigned long i = 0; i < samples.size(); ++i)
{
begin_j = begin_i + 1;
begin_j = begin_i + k;
end_j = begin_j + k;
for (unsigned long j = i+1; j < samples.size(); ++j)