mrzv / dionysus

Library for computing persistent homology
http://mrzv.org/software/dionysus2
Other
144 stars 31 forks source link

Bottleneck Distances #22

Closed aspannaus closed 6 years ago

aspannaus commented 6 years ago

I am having an issue when computing the bottleneck distance between two diagrams. When both persistence diagrams have a point that has inf as its death time, the bottleneck distance seems to hang and not return a value.

As a simple example, consider: import dionysus as d dgm1 = d.Diagram([(1,2), (3,4), (1., float('inf'))]) dgm2 = d.Diagram([(0,2), (3,5), (2., float('inf'))]) d.bottleneck_distance(dgm1,dgm2)

mrzv commented 6 years ago

Try it now.