summaryrefslogtreecommitdiff
path: root/src/Subsampling
diff options
context:
space:
mode:
authorcjamin <cjamin@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-06-21 13:11:24 +0000
committercjamin <cjamin@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-06-21 13:11:24 +0000
commit4fcd44cbaf631e764e7cd7a9b1e23d209685bba5 (patch)
treef39846175e06eca610b2e524899082944e47b1f0 /src/Subsampling
parentffcfe6014704dc2b2e5121d64ba42a832f4bbc34 (diff)
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
Diffstat (limited to 'src/Subsampling')
-rw-r--r--src/Subsampling/include/gudhi/choose_by_farthest_point.h11
1 files changed, 4 insertions, 7 deletions
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 <gudhi/Spatial_tree_data_structure.h>
-
#include <boost/range.hpp>
#include <iterator>
@@ -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];