From 4fcd44cbaf631e764e7cd7a9b1e23d209685bba5 Mon Sep 17 00:00:00 2001 From: cjamin Date: Tue, 21 Jun 2016 13:11:24 +0000 Subject: Minor fixes git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/subsampling_and_spatialsearching@1322 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 1be827933417d190d01c7ec56c6b14283c2deb51 --- src/Subsampling/include/gudhi/choose_by_farthest_point.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/Subsampling/include') diff --git a/src/Subsampling/include/gudhi/choose_by_farthest_point.h b/src/Subsampling/include/gudhi/choose_by_farthest_point.h index 9877d5eb..434b5f7d 100644 --- a/src/Subsampling/include/gudhi/choose_by_farthest_point.h +++ b/src/Subsampling/include/gudhi/choose_by_farthest_point.h @@ -23,8 +23,6 @@ #ifndef CHOOSE_BY_FARTHEST_POINT_H_ #define CHOOSE_BY_FARTHEST_POINT_H_ -#include - #include #include @@ -50,10 +48,10 @@ namespace Gudhi { template < typename Kernel, typename Point_container, typename OutputIterator> - void choose_by_farthest_point( Kernel& k, - Point_container const &points, - int nbL, - OutputIterator output_it) + void choose_by_farthest_point(Kernel& k, + Point_container const &points, + int nbL, + OutputIterator output_it) { typename Kernel::Squared_distance_d sqdist = k.squared_distance_d_object(); @@ -71,7 +69,6 @@ namespace Gudhi { std::uniform_int_distribution<> dis(1, 6); int curr_max_w = dis(gen); - for (current_number_of_landmarks = 0; current_number_of_landmarks != nbL; current_number_of_landmarks++) { // curr_max_w at this point is the next landmark *output_it++ = points[curr_max_w]; -- cgit v1.2.3