diff options
-rw-r--r-- | src/cython/cython/cubical_complex.pyx | 2 | ||||
-rw-r--r-- | src/cython/cython/periodic_cubical_complex.pyx | 2 | ||||
-rw-r--r-- | src/cython/cython/simplex_tree.pyx | 2 | ||||
-rwxr-xr-x | src/cython/example/alpha_rips_persistence_bottleneck_distance.py | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/src/cython/cython/cubical_complex.pyx b/src/cython/cython/cubical_complex.pyx index 6f576176..e1344f49 100644 --- a/src/cython/cython/cubical_complex.pyx +++ b/src/cython/cython/cubical_complex.pyx @@ -176,7 +176,7 @@ cdef class CubicalComplex: pbn_result = self.pcohptr.persistent_betti_numbers(<double>from_value, <double>to_value) return pbn_result - def intervals_in_dim(self, dimension): + def persistence_intervals_in_dimension(self, dimension): """This function returns the persistence intervals of the simplicial complex in a specific dimension. diff --git a/src/cython/cython/periodic_cubical_complex.pyx b/src/cython/cython/periodic_cubical_complex.pyx index af72024a..1445d429 100644 --- a/src/cython/cython/periodic_cubical_complex.pyx +++ b/src/cython/cython/periodic_cubical_complex.pyx @@ -176,7 +176,7 @@ cdef class PeriodicCubicalComplex: pbn_result = self.pcohptr.persistent_betti_numbers(<double>from_value, <double>to_value) return pbn_result - def intervals_in_dim(self, dimension): + def persistence_intervals_in_dimension(self, dimension): """This function returns the persistence intervals of the simplicial complex in a specific dimension. diff --git a/src/cython/cython/simplex_tree.pyx b/src/cython/cython/simplex_tree.pyx index 6bf0a159..c0016461 100644 --- a/src/cython/cython/simplex_tree.pyx +++ b/src/cython/cython/simplex_tree.pyx @@ -361,7 +361,7 @@ cdef class SimplexTree: " to be launched first.") return pbn_result - def intervals_in_dim(self, dimension): + def persistence_intervals_in_dimension(self, dimension): """This function returns the persistence intervals of the simplicial complex in a specific dimension. diff --git a/src/cython/example/alpha_rips_persistence_bottleneck_distance.py b/src/cython/example/alpha_rips_persistence_bottleneck_distance.py index cd64704b..ab5fc1e9 100755 --- a/src/cython/example/alpha_rips_persistence_bottleneck_distance.py +++ b/src/cython/example/alpha_rips_persistence_bottleneck_distance.py @@ -81,10 +81,10 @@ with open(args.file, 'r') as f: # values are alpha square values funcs = [math.sqrt, math.sqrt] alpha_intervals = [] - for interval in alpha_stree.intervals_in_dim(dim): + for interval in alpha_stree.persistence_intervals_in_dimension(dim): alpha_intervals.append(map(lambda func,value: func(value), funcs, interval)) - rips_intervals = rips_stree.intervals_in_dim(dim) + rips_intervals = rips_stree.persistence_intervals_in_dimension(dim) bottleneck_distance = gudhi.bottleneck_distance(rips_intervals, alpha_intervals) message = "In dimension " + repr(dim) + ", bottleneck distance = " + repr(bottleneck_distance) print(message) |