From 33e5406c0f1b6a74ac8a3246cdb72ae879bb4339 Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Mon, 20 Mar 2017 16:29:05 +0000 Subject: 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 --- src/cython/cython/cubical_complex.pyx | 2 +- src/cython/cython/periodic_cubical_complex.pyx | 2 +- src/cython/cython/simplex_tree.pyx | 2 +- src/cython/example/alpha_rips_persistence_bottleneck_distance.py | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/cython') 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(from_value, 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(from_value, 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) -- cgit v1.2.3