diff options
author | skachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-02-18 13:02:25 +0000 |
---|---|---|
committer | skachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-02-18 13:02:25 +0000 |
commit | 67f7ecf8e35b51256304b5120daf2827450b6dcd (patch) | |
tree | 60786f8c4e0339f6e23b602f15bc3dcbf2915eae /src/Witness_complex/include/gudhi/Landmark_choice_by_furthest_point.h | |
parent | c5469621436305badbc4c5a64380881b6571f7bc (diff) |
The rest of changes
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/witness@1031 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: af29326bd4293697211c20001fc120108a38b3f4
Diffstat (limited to 'src/Witness_complex/include/gudhi/Landmark_choice_by_furthest_point.h')
-rw-r--r-- | src/Witness_complex/include/gudhi/Landmark_choice_by_furthest_point.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Witness_complex/include/gudhi/Landmark_choice_by_furthest_point.h b/src/Witness_complex/include/gudhi/Landmark_choice_by_furthest_point.h index 2491b319..472cc0f7 100644 --- a/src/Witness_complex/include/gudhi/Landmark_choice_by_furthest_point.h +++ b/src/Witness_complex/include/gudhi/Landmark_choice_by_furthest_point.h @@ -39,6 +39,11 @@ namespace witness_complex { * current landmark set as the new landmark. * \details It chooses nbL landmarks from a random access range `points` and * writes {witness}*{closest landmarks} matrix in `knn`. + * + * The type KNearestNeighbors can be seen as + * Witness_range<Closest_landmark_range<Vertex_handle>>, where + * Witness_range and Closest_landmark_range are random access ranges + * */ template <typename KNearestNeighbours, @@ -82,7 +87,7 @@ namespace witness_complex { curr_max_w = i; } } - for (unsigned i = 0; i < points.size(); ++i) + for (unsigned i = 0; i < nb_points; ++i) std::sort(knn[i].begin(), knn[i].end(), [&wit_land_dist, i](int a, int b) { |