diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-03 15:17:04 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-10-03 15:17:04 +0000 |
commit | 5ce7c7c8ec1378439cdc02dc94ac2a7e14e9ca04 (patch) | |
tree | e5dab0473590126a3a5864fe7ebc11720c26bd26 /src/Rips_complex/example/example_rips_complex_from_off_file.cpp | |
parent | 29499b02d1b6eafcc6419a0b6b4469152ea20a09 (diff) |
Fix euclidean distance for rips
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/rips_complex_module@1610 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: a07dfd4ffe3f17bf242ffb5b57058e99171a8016
Diffstat (limited to 'src/Rips_complex/example/example_rips_complex_from_off_file.cpp')
-rw-r--r-- | src/Rips_complex/example/example_rips_complex_from_off_file.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
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 82baa68e..60050cea 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 @@ -25,14 +25,15 @@ int main(int argc, char **argv) { // Type definitions using Point = std::vector<float>; using Simplex_tree = Gudhi::Simplex_tree<>; - using Rips_complex = Gudhi::rips_complex::Rips_complex<Simplex_tree::Filtration_value>; + using Filtration_value = Simplex_tree::Filtration_value; + using Rips_complex = Gudhi::rips_complex::Rips_complex<Filtration_value>; // ---------------------------------------------------------------------------- // 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<Point>); + euclidean_distance<Filtration_value, Point>); std::streambuf* streambufffer; std::ofstream ouput_file_stream; |