diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-11-17 09:52:03 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-11-17 09:52:03 +0000 |
commit | ede6f875e8340fb72d114ad9db3b54862566594f (patch) | |
tree | d096337589d4ff217c31d12f558a150e19c47e39 /src/Persistent_cohomology/example/alpha_complex_persistence.cpp | |
parent | 668e76bbe8f350ab0fdf6f6105e8c7818a5ad38f (diff) |
Modify examples
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/rips_complex_module@1757 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 4b6f26947ad16f440ea4d4b7cb5e145a58f28dcb
Diffstat (limited to 'src/Persistent_cohomology/example/alpha_complex_persistence.cpp')
-rw-r--r-- | src/Persistent_cohomology/example/alpha_complex_persistence.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Persistent_cohomology/example/alpha_complex_persistence.cpp b/src/Persistent_cohomology/example/alpha_complex_persistence.cpp index bca4b66c..9e84e91f 100644 --- a/src/Persistent_cohomology/example/alpha_complex_persistence.cpp +++ b/src/Persistent_cohomology/example/alpha_complex_persistence.cpp @@ -11,7 +11,8 @@ #include <string> #include <limits> // for numeric_limits -using Filtration_value = double; +using Simplex_tree = Gudhi::Simplex_tree<>; +using Filtration_value = Simplex_tree::Filtration_value; void program_options(int argc, char * argv[] , std::string & off_file_points @@ -36,7 +37,7 @@ int main(int argc, char **argv) { using Kernel = CGAL::Epick_d< CGAL::Dynamic_dimension_tag >; Gudhi::alpha_complex::Alpha_complex<Kernel> alpha_complex_from_file(off_file_points); - Gudhi::Simplex_tree<> simplex; + Simplex_tree simplex; if (alpha_complex_from_file.create_complex(simplex, alpha_square_max_value)) { // ---------------------------------------------------------------------------- // Display information about the alpha complex @@ -50,7 +51,7 @@ int main(int argc, char **argv) { std::cout << "Simplex_tree dim: " << simplex.dimension() << std::endl; // Compute the persistence diagram of the complex - Gudhi::persistent_cohomology::Persistent_cohomology< Gudhi::Simplex_tree<>, + Gudhi::persistent_cohomology::Persistent_cohomology< Simplex_tree, Gudhi::persistent_cohomology::Field_Zp > pcoh(simplex); // initializes the coefficient field for homology pcoh.init_coefficients(coeff_field_characteristic); |