summaryrefslogtreecommitdiff
path: root/src/cython/example
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-06-16 15:39:47 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2016-06-16 15:39:47 +0000
commit58c333ebd87f6d1dbf6e1ffb887b1de00305f4cc (patch)
tree23be3bf9181f3fa38ba0906275b8d5e3d11c7078 /src/cython/example
parenta661984d2ed0e515bd0d2f824ba2a03047dfdd38 (diff)
Revert relaxed witness complex
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/ST_cythonize@1308 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 526b0466b3d7d4a8ad2507e5199c15756099125e
Diffstat (limited to 'src/cython/example')
-rwxr-xr-xsrc/cython/example/witness_complex_from_file_example.py15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/cython/example/witness_complex_from_file_example.py b/src/cython/example/witness_complex_from_file_example.py
index d67d1c34..82a5b49a 100755
--- a/src/cython/example/witness_complex_from_file_example.py
+++ b/src/cython/example/witness_complex_from_file_example.py
@@ -46,20 +46,11 @@ args = parser.parse_args()
points = pandas.read_csv(args.file, header=None)
-print("WitnessComplex with number_of_landmarks=100 alpha=0.7 epsilon_mu=0.001 max_dim=10")
+print("WitnessComplex with number_of_landmarks=100")
witness_complex = gudhi.WitnessComplex(points=points.values,
- number_of_landmarks=100,
- max_alpha_square=0.7,
- mu_epsilon=0.001,
- dimension_limit=10)
+ number_of_landmarks=100)
witness_complex.initialize_filtration()
-diag = witness_complex.persistence(homology_coeff_field=2, min_persistence=0.1)
-print("betti_numbers()=")
-print(witness_complex.betti_numbers())
-
-gudhi.diagram_persistence(diag)
-
-gudhi.barcode_persistence(diag)
+print("filtered_tree=", witness_complex.get_filtered_tree())