Server modif.: changes getClosestInSS
Straightforward '=' between old and new values. git-svn-id: https://pif.pu-pm.univ-fcomte.fr/svn/loc@32 785a6c6c-259e-4ff1-8b91-dc31627914f0
This commit is contained in:
parent
6641aef72b
commit
b2f613bce5
|
@ -389,10 +389,13 @@ vector<Point> Server::getkClosestInSs(const vector<Measurement> &m, const unsign
|
|||
if (distances_vector[j] == dist_max)
|
||||
{
|
||||
dist_max = tmp_distance;
|
||||
/* Old fashion
|
||||
distances_vector.erase(distances_vector.begin() + j);
|
||||
points_vector.erase(points_vector.begin() + j);
|
||||
distances_vector.push_back(tmp_distance);
|
||||
points_vector.push_back(reference_point_list[i].getCoordinates());
|
||||
points_vector.push_back(reference_point_list[i].getCoordinates());*/
|
||||
distance_vector[j] = tmp_distance;
|
||||
points_vector[j] = reference_point_list[i].getCoordinates();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue