Searched refs:score_index_heap (Results 1 – 1 of 1) sorted by relevance
266 static std::vector<ScoreIndexPair> score_index_heap; in getNeighbors() local292 … score_index_heap.push_back(ScoreIndexPair(hamming_distance, training_index)); in getNeighbors()293 std::push_heap(score_index_heap.begin(), score_index_heap.end()); in getNeighbors()295 if (score_index_heap.size() > (unsigned int)k_nn) { in getNeighbors()297 std::pop_heap(score_index_heap.begin(), score_index_heap.end()); in getNeighbors()298 score_index_heap.pop_back(); in getNeighbors()300 worst_score = score_index_heap.front().first; in getNeighbors()328 …if (hamming_distance < radius) score_index_heap.push_back(ScoreIndexPair(hamming_distance, trainin… in getNeighbors()