summaryrefslogtreecommitdiff
path: root/src/Subsampling/example/example_custom_kernel.cpp
diff options
context:
space:
mode:
authormcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-04-12 07:50:07 +0000
committermcarrier <mcarrier@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-04-12 07:50:07 +0000
commit9a8649a45f61a9e152f26cb3fcbbdeabec5e0f37 (patch)
tree7a16c67262070914c5351f38bed9941824b1f053 /src/Subsampling/example/example_custom_kernel.cpp
parent9a4ad421d6faf66c7fa3091340e07e8e61adaae8 (diff)
parent387a5af3ee1b664346eb9686f00c986e9f7a1e3e (diff)
Merged latest trunk changes to Nerve_GIC
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/Nerve_GIC@2336 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 45e06633204b8da3a91751fd510f1639225beb2d
Diffstat (limited to 'src/Subsampling/example/example_custom_kernel.cpp')
-rw-r--r--src/Subsampling/example/example_custom_kernel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Subsampling/example/example_custom_kernel.cpp b/src/Subsampling/example/example_custom_kernel.cpp
index 25b5bf6c..2d42bdde 100644
--- a/src/Subsampling/example/example_custom_kernel.cpp
+++ b/src/Subsampling/example/example_custom_kernel.cpp
@@ -54,7 +54,9 @@ 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_starting_point,
+ 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";