summaryrefslogtreecommitdiff
path: root/src/Subsampling/example/example_choose_n_farthest_points.cpp
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2020-12-10 23:36:58 +0100
committerGitHub <noreply@github.com>2020-12-10 23:36:58 +0100
commit10794c300e349fef918b9b8e91d4c2aee7a01890 (patch)
tree1ccbbaa9b31c98d4921f2745eb88ae45f9d43aef /src/Subsampling/example/example_choose_n_farthest_points.cpp
parentd1b7c8fd3e66c19203967d559582af713417aeca (diff)
parenta2783dd8db753a407cfad329d03e2a56b2095f3d (diff)
Merge pull request #409 from mglisse/fardist
Pass a distance function instead of a kernel to choose_n_farthest_points
Diffstat (limited to 'src/Subsampling/example/example_choose_n_farthest_points.cpp')
-rw-r--r--src/Subsampling/example/example_choose_n_farthest_points.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Subsampling/example/example_choose_n_farthest_points.cpp b/src/Subsampling/example/example_choose_n_farthest_points.cpp
index 27cf5d4e..e8b3ce2d 100644
--- a/src/Subsampling/example/example_choose_n_farthest_points.cpp
+++ b/src/Subsampling/example/example_choose_n_farthest_points.cpp
@@ -20,7 +20,7 @@ int main(void) {
K k;
std::vector<Point_d> results;
- Gudhi::subsampling::choose_n_farthest_points(k, points, 100,
+ Gudhi::subsampling::choose_n_farthest_points(k.squared_distance_d_object(), points, 100,
Gudhi::subsampling::random_starting_point,
std::back_inserter(results));
std::clog << "Before sparsification: " << points.size() << " points.\n";