summaryrefslogtreecommitdiff
path: root/src/Witness_complex/example/example_strong_witness_complex_off.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/Witness_complex/example/example_strong_witness_complex_off.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/Witness_complex/example/example_strong_witness_complex_off.cpp')
-rw-r--r--src/Witness_complex/example/example_strong_witness_complex_off.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Witness_complex/example/example_strong_witness_complex_off.cpp b/src/Witness_complex/example/example_strong_witness_complex_off.cpp
index 583a04ab..2bb135bf 100644
--- a/src/Witness_complex/example/example_strong_witness_complex_off.cpp
+++ b/src/Witness_complex/example/example_strong_witness_complex_off.cpp
@@ -43,7 +43,8 @@ int main(int argc, char* const argv[]) {
// Choose landmarks (decomment one of the following two lines)
// Gudhi::subsampling::pick_n_random_points(point_vector, nbL, std::back_inserter(landmarks));
- Gudhi::subsampling::choose_n_farthest_points(K(), point_vector, nbL, Gudhi::subsampling::random_starting_point,
+ Gudhi::subsampling::choose_n_farthest_points(K().squared_distance_d_object(), point_vector,
+ nbL, Gudhi::subsampling::random_starting_point,
std::back_inserter(landmarks));
// Compute witness complex