summaryrefslogtreecommitdiff
path: root/src/Rips_complex/example
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-12-08 22:17:04 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-12-08 22:17:04 +0000
commitb41fb07d4dbaf4e12c31b952cc2bc24e30c55384 (patch)
tree0393f116d51636a64287d5cab8815cf08735b2c4 /src/Rips_complex/example
parentccc1ca066fa7c1fb35929eceb52f2f36179aea37 (diff)
replace euclidean_distance with a class Euclidean_distance containing an operator()
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/distance_matrix_in_rips_module@1840 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: b1619401ac0ef978257709c5deeb7e19fbcff32c
Diffstat (limited to 'src/Rips_complex/example')
-rw-r--r--src/Rips_complex/example/example_one_skeleton_rips_from_points.cpp2
-rw-r--r--src/Rips_complex/example/example_rips_complex_from_off_file.cpp3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/Rips_complex/example/example_one_skeleton_rips_from_points.cpp b/src/Rips_complex/example/example_one_skeleton_rips_from_points.cpp
index 68fc3629..e9e7ecd4 100644
--- a/src/Rips_complex/example/example_one_skeleton_rips_from_points.cpp
+++ b/src/Rips_complex/example/example_one_skeleton_rips_from_points.cpp
@@ -38,7 +38,7 @@ int main(int argc, char **argv) {
// ----------------------------------------------------------------------------
// Init of a rips complex from points
// ----------------------------------------------------------------------------
- Rips_complex rips_complex_from_points(points, threshold, euclidean_distance<Filtration_value, Point>);
+ Rips_complex rips_complex_from_points(points, threshold, Euclidean_distance());
Simplex_tree simplex;
if (rips_complex_from_points.create_complex(simplex, 1)) {
diff --git a/src/Rips_complex/example/example_rips_complex_from_off_file.cpp b/src/Rips_complex/example/example_rips_complex_from_off_file.cpp
index 469de403..af2c7029 100644
--- a/src/Rips_complex/example/example_rips_complex_from_off_file.cpp
+++ b/src/Rips_complex/example/example_rips_complex_from_off_file.cpp
@@ -33,8 +33,7 @@ int main(int argc, char **argv) {
// Init of a rips complex from an OFF file
// ----------------------------------------------------------------------------
Gudhi::Points_off_reader<Point> off_reader(off_file_name);
- Rips_complex rips_complex_from_file(off_reader.get_point_cloud(), threshold,
- euclidean_distance<Filtration_value, Point>);
+ Rips_complex rips_complex_from_file(off_reader.get_point_cloud(), threshold, Euclidean_distance());
std::streambuf* streambufffer;
std::ofstream ouput_file_stream;