Closed cdeepakroy closed 7 years ago
You need at least 2-skeleton to compute 1-dimensional homology. So the skeleton parameter to fill_rips()
should be 2.
By the way, when working with Rips complexes, you are much better off using cohomology. So in your snippet above, replace m = d.homology_persistence(f)
with m = d.cohomology_persistence(f)
. The computation will be significantly faster.
Thanks! It works!
I am just getting started with using the dionysus on some toy data.
Below i tried to sample n points from a circle perturbed by gaussian noise of a specified scale
Then i tried to compute persistence diagrams upto dimension 1 using rips filtration using the code below:
Then i tried to plot the diagrams of dimension 0 and 1 using the following code:
The diagram of dimension 0 looks as expected:
However the plot of diagram of dimension 1 produced the following error
The reason is the death value of all birth-death pairs in diagram of dimension 1 is infinity.
This seems to be a bug or did i misinterpret any of the parameters of the rips filtration.