summaryrefslogtreecommitdiff
path: root/src/Subsampling/example/example_custom_kernel.cpp
diff options
context:
space:
mode:
authorglisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-03-26 12:38:26 +0000
committerglisse <glisse@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-03-26 12:38:26 +0000
commitd2e5de256424e824e9f54a6ae6c30cd06d8111d4 (patch)
treebf9f2210f06ef146c90f9953732fe998ab5a326c /src/Subsampling/example/example_custom_kernel.cpp
parent1208d423e700764a3453767886e6a3b4c0a09125 (diff)
Remove overload of choose_n_farthest_points.
Use a named constant instead of -1 to denote a random value. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/farthest_distance@2245 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 166dff85c74ab2c13bfd788f226d1d8a15d1d1b9
Diffstat (limited to 'src/Subsampling/example/example_custom_kernel.cpp')
-rw-r--r--src/Subsampling/example/example_custom_kernel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Subsampling/example/example_custom_kernel.cpp b/src/Subsampling/example/example_custom_kernel.cpp
index 25b5bf6c..935ba885 100644
--- a/src/Subsampling/example/example_custom_kernel.cpp
+++ b/src/Subsampling/example/example_custom_kernel.cpp
@@ -54,7 +54,7 @@ int main(void) {
std::vector<Point_d> points = {0, 1, 2, 3};
std::vector<Point_d> results;
- Gudhi::subsampling::choose_n_farthest_points(k, points, 2, std::back_inserter(results));
+ Gudhi::subsampling::choose_n_farthest_points(k, points, 2, Gudhi::subsampling::random_first_landmark, std::back_inserter(results));
std::cout << "Before sparsification: " << points.size() << " points.\n";
std::cout << "After sparsification: " << results.size() << " points.\n";
std::cout << "Result table: {" << results[0] << "," << results[1] << "}\n";