summaryrefslogtreecommitdiff
path: root/src/python/gudhi/weighted_rips_complex.py
diff options
context:
space:
mode:
authoryuichi-ike <yuichi.ike.1990@gmail.com>2020-04-07 09:36:03 +0900
committeryuichi-ike <yuichi.ike.1990@gmail.com>2020-04-07 09:36:03 +0900
commit4294e5fc6e1bff246a7d22f1bd98f91b62f14163 (patch)
treecffe6fc9df2e2da9f839486799aaa8f986a5730c /src/python/gudhi/weighted_rips_complex.py
parenta4fa5f673784a842e9fac13003c843d454c888a4 (diff)
filtration value fixed
Diffstat (limited to 'src/python/gudhi/weighted_rips_complex.py')
-rw-r--r--src/python/gudhi/weighted_rips_complex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/gudhi/weighted_rips_complex.py b/src/python/gudhi/weighted_rips_complex.py
index 9df2ddf9..7e504b2c 100644
--- a/src/python/gudhi/weighted_rips_complex.py
+++ b/src/python/gudhi/weighted_rips_complex.py
@@ -51,7 +51,7 @@ class WeightedRipsComplex:
st.insert([i], F[i])
for i in range(num_pts):
for j in range(i):
- value = (dist[i][j] + F[i] + F[j]) / 2
+ value = max(F[i], F[j], (dist[i][j] + F[i] + F[j]) / 2)
if value < self.max_filtration:
st.insert([i,j], filtration=value)