summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuichi-ike <yuichi.ike.1990@gmail.com>2020-04-06 16:43:55 +0900
committeryuichi-ike <yuichi.ike.1990@gmail.com>2020-04-06 16:43:55 +0900
commit5737c5e1e89cc4c939a784742f25b26ca163332d (patch)
tree21c41d3a6fe1967a008a2181c187e6ee3f5e0b76
parentfadeb80b46001779e2a998941a02195921b03124 (diff)
comments added
-rw-r--r--src/python/gudhi/weighted_rips_complex.py16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/python/gudhi/weighted_rips_complex.py b/src/python/gudhi/weighted_rips_complex.py
index 34a627cb..84e8e38e 100644
--- a/src/python/gudhi/weighted_rips_complex.py
+++ b/src/python/gudhi/weighted_rips_complex.py
@@ -17,12 +17,26 @@ class WeightedRipsComplex:
def __init__(self,
distance_matrix=None,
filtration_values=None,
- max_filtration=float('inf'), sparse=None):
+ max_filtration=float('inf')):
+ """
+ Parameters:
+ distance_matrix: list of list of float,
+ distance matrix (full square or lower triangular)
+ filtration_values: list of float,
+ flitration value for each index
+ max_filtration: float,
+ specifies the maximal filtration value to be considered
+ """
self.distance_matrix = distance_matrix
self.filtration_values = filtration_values
self.max_filtration = max_filtration
def create_simplex_tree(self, max_dimension):
+ """
+ Parameter:
+ max_dimension: int
+ graph expansion until this given dimension
+ """
dist = self.distance_matrix
F = self.filtration_values
num_pts = len(dist)