summaryrefslogtreecommitdiff
path: root/src/Subsampling/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/Subsampling/include')
-rw-r--r--src/Subsampling/include/gudhi/sparsify_point_set.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Subsampling/include/gudhi/sparsify_point_set.h b/src/Subsampling/include/gudhi/sparsify_point_set.h
index 09c4af13..b4536ec8 100644
--- a/src/Subsampling/include/gudhi/sparsify_point_set.h
+++ b/src/Subsampling/include/gudhi/sparsify_point_set.h
@@ -42,15 +42,15 @@ namespace subsampling {
*
*/
-template <typename Kernel, typename Point_container, typename OutputIterator>
+template <typename Kernel, typename Point_range, typename OutputIterator>
void
sparsify_point_set(
- const Kernel &k, Point_container const& input_pts,
+ const Kernel &k, Point_range const& input_pts,
typename Kernel::FT min_squared_dist,
OutputIterator output_it)
{
typedef typename Gudhi::spatial_searching::Spatial_tree_data_structure<
- Kernel, Point_container> Points_ds;
+ Kernel, Point_range> Points_ds;
typename Kernel::Squared_distance_d sqdist = k.squared_distance_d_object();
@@ -65,7 +65,7 @@ sparsify_point_set(
// Parse the input points, and add them if they are not too close to
// the other points
std::size_t pt_idx = 0;
- for (typename Point_container::const_iterator it_pt = input_pts.begin() ;
+ for (typename Point_range::const_iterator it_pt = input_pts.begin() ;
it_pt != input_pts.end();
++it_pt, ++pt_idx)
{