summaryrefslogtreecommitdiff
path: root/src/cython/example
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-06-08 05:34:33 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-06-08 05:34:33 +0000
commit0d06b5d39febbf812b48d3fb7f800c98204718ea (patch)
tree819896228c4be345ae1d637cd2c2c68b2ac6bd92 /src/cython/example
parent455728327692dca15d037b971b73200fdeeb572e (diff)
Persistence diagram first version working with alpha_complex_from_file_example.py
Comment graphical tools in example Makefile section git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/ST_cythonize@1259 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: b315b7c414bd0e2b269dcc2fbcae645a025335f1
Diffstat (limited to 'src/cython/example')
-rwxr-xr-xsrc/cython/example/alpha_complex_from_file_example.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/cython/example/alpha_complex_from_file_example.py b/src/cython/example/alpha_complex_from_file_example.py
index 04b4b279..da7ae857 100755
--- a/src/cython/example/alpha_complex_from_file_example.py
+++ b/src/cython/example/alpha_complex_from_file_example.py
@@ -49,15 +49,12 @@ points = pandas.read_csv(args.file, header=None)
alpha_complex = gudhi.AlphaComplex(points=points.values,
max_alpha_square=0.5)
-print("dimension=", alpha_complex.dimension())
-print("point[0]=", alpha_complex.get_point(0))
-print("point[5]=", alpha_complex.get_point(5))
-
alpha_complex.initialize_filtration()
diag = alpha_complex.persistence(homology_coeff_field=2, min_persistence=0.1)
print("betti_numbers()=")
print(alpha_complex.betti_numbers())
-print("star([0])=", alpha_complex.get_star_tree([0]))
-print("coface([0], 1)=", alpha_complex.get_coface_tree([0], 1))
+gudhi.diagram_persistence(diag)
+
+gudhi.bar_code_persistence(diag)