mirror of https://github.com/davisking/dlib.git
Fixed bug in knn code.
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403590
This commit is contained in:
parent
6e8323adcf
commit
8896813cc2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue