summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-03-20 16:29:05 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-03-20 16:29:05 +0000
commit33e5406c0f1b6a74ac8a3246cdb72ae879bb4339 (patch)
tree2b1cac6231e109e3ec3e7a6aab4c9ea70995813e /src
parentd228be4eb8af79872dacd557e0538a3697ed7a41 (diff)
rename persistence function intervals_in_dim with persistence_intervals_in_dimension
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/ST_cythonize@2209 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 7991f11d249a2051d0cb6e7f453b1d6b7bcb7c36
Diffstat (limited to 'src')
-rw-r--r--src/cython/cython/cubical_complex.pyx2
-rw-r--r--src/cython/cython/periodic_cubical_complex.pyx2
-rw-r--r--src/cython/cython/simplex_tree.pyx2
-rwxr-xr-xsrc/cython/example/alpha_rips_persistence_bottleneck_distance.py4
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)