From 38dc1f43136afe004e71d0076b9fa3919e7f68a5 Mon Sep 17 00:00:00 2001 From: Ulrich Bauer Date: Thu, 24 May 2018 15:47:20 -0400 Subject: using ratio --- ripser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ripser.cpp b/ripser.cpp index 69c8355..2eacd63 100644 --- a/ripser.cpp +++ b/ripser.cpp @@ -567,7 +567,7 @@ public: } else { #ifdef PRINT_PERSISTENCE_PAIRS value_t death = get_diameter(pivot); - if (diameter != death) { + if (death > diameter * ratio) { #ifdef INDICATE_PROGRESS std::cout << "\033[K"; #endif -- cgit v1.2.3