summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Bauer <mail@ulrich-bauer.org>2018-05-24 15:47:20 -0400
committerUlrich Bauer <mail@ulrich-bauer.org>2018-05-24 15:47:20 -0400
commit38dc1f43136afe004e71d0076b9fa3919e7f68a5 (patch)
tree3f8dfb0a19794ce09fd570115ac748f03b2e832d
parenta1154088fd2d47320f56839b1c7a0ed87ae35ade (diff)
using ratio
-rw-r--r--ripser.cpp2
1 files changed, 1 insertions, 1 deletions
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