diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-12-16 11:05:25 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2016-12-16 11:05:25 +0000 |
commit | e897b33b3184a230a24ddeff03c6b4ec070f2ab7 (patch) | |
tree | 673d070cf08800b17fbe0d50278cf89ede3c69a3 /src/GudhUI | |
parent | 8340ca1acd568c93d115fcd46a996749a8cc295d (diff) |
Fix persistence rips after create_complex voidification
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/distance_matrix_in_rips_module@1896 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: d4a1258ea01bae048f30621594d0daf280fd8abb
Diffstat (limited to 'src/GudhUI')
-rw-r--r-- | src/GudhUI/utils/Persistence_compute.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/GudhUI/utils/Persistence_compute.h b/src/GudhUI/utils/Persistence_compute.h index 12283cbe..2dc03c8e 100644 --- a/src/GudhUI/utils/Persistence_compute.h +++ b/src/GudhUI/utils/Persistence_compute.h @@ -79,16 +79,15 @@ template<typename SkBlComplex> class Persistence_compute { Rips_complex rips_complex(points, params.threshold, Euclidean_distance()); Simplex_tree st; - if (rips_complex.create_complex(st, params.max_dim)) { - Persistent_cohomology pcoh(st); - // initializes the coefficient field for homology - pcoh.init_coefficients(params.p); - // put params.min_pers - pcoh.compute_persistent_cohomology(params.min_pers); - stream << "persistence: \n"; - stream << "p dimension birth death: \n"; - pcoh.output_diagram(stream); - } + rips_complex.create_complex(st, params.max_dim); + Persistent_cohomology pcoh(st); + // initializes the coefficient field for homology + pcoh.init_coefficients(params.p); + // put params.min_pers + pcoh.compute_persistent_cohomology(params.min_pers); + stream << "persistence: \n"; + stream << "p dimension birth death: \n"; + pcoh.output_diagram(stream); } }; |