summaryrefslogtreecommitdiff
path: root/src/cython/example/persistence_representations_landscapes_example.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/cython/example/persistence_representations_landscapes_example.py')
-rwxr-xr-xsrc/cython/example/persistence_representations_landscapes_example.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cython/example/persistence_representations_landscapes_example.py b/src/cython/example/persistence_representations_landscapes_example.py
index b7e47c0b..94b68225 100755
--- a/src/cython/example/persistence_representations_landscapes_example.py
+++ b/src/cython/example/persistence_representations_landscapes_example.py
@@ -53,11 +53,11 @@ print "L^1 Norm of l1 : ", l1.compute_norm_of_landscape(1.)
print "L^1 Norm of l2 : ", l2.compute_norm_of_landscape(1.)
#here is the average of landscapes:
-average = gudhi.PersistenceLandscapes
-average.compute_average([l1, l2])
+average = gudhi.PersistenceLandscapes()
+average.compute_average(to_average=[l1, l2])
#here is the distance of landscapes:
-print "Distance : ", l1.distance(l2)
+print "Distance : ", l1.distance(average,1)
#here is the scalar product of landscapes:
print "Scalar product : ", l1.compute_scalar_product(l2)