Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/cpp/flann/nn/index_testing.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ float test_index_precision(Index& index, const Matrix<typename Distance::Element
int c2 = 1;
float p2;
int c1 = 1;
// float p1;
float time;
DistanceType dist;

Expand All @@ -183,7 +182,6 @@ float test_index_precision(Index& index, const Matrix<typename Distance::Element

while (p2<precision) {
c1 = c2;
// p1 = p2;
c2 *=2;
p2 = search_with_ground_truth(index, inputData, testData, matches, nn, c2, time, dist, distance, skipMatches);
}
Expand Down Expand Up @@ -250,7 +248,6 @@ void test_index_precisions(Index& index, const Matrix<typename Distance::Element
float p2;

int c1 = 1;
float p1;

float time;
DistanceType dist;
Expand All @@ -274,7 +271,6 @@ void test_index_precisions(Index& index, const Matrix<typename Distance::Element
precision = precisions[i];
while (p2<precision) {
c1 = c2;
p1 = p2;
c2 *=2;
p2 = search_with_ground_truth(index, inputData, testData, matches, nn, c2, time, dist, distance, skipMatches);
if ((maxTime> 0)&&(time > maxTime)&&(p2<precision)) return;
Expand Down