diff options
Diffstat (limited to 'src/GudhUI/utils/Persistence_compute.h')
-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); } }; |