Recovering polygons from the 2-persistence representation #44
|
First, thank you for this very nice package, it's been a pleasure to work with it. I have a question regarding the 2-persistence representation you propose, based on the interval decomposition techniques implemented in the My question is: beyond the visual rendering, is it possible to access or extract the individual polygons ? for instance, as a Best, |
Replies: 1 comment 1 reply
|
Hey Hugo, Thank you for these kind words and your interest in import multipers as mp
from multipers.data.synthetic import noisy_annulus
X = noisy_annulus(500,500)
s = mp.filtrations.DelaunayCodensity(points = X, bandwidth=.1, reduce_degree=1)
m = mp.module_approximation(s)
for summand in m:
print(summand.get_birth_list())
print(summand.get_death_list())
break
# or
print(m[73].get_birth_list())The This interface could be improved, but I didn't find something significantly better than this for the moment. |
Hey Hugo,
Thank you for these kind words and your interest in
multipers!It's totally possible to recovers these coordinates. Basically a module approximation is iterable on its summand, i.e., shape.
So something like the following should work:
The$B$ correspond to the lower corners of the shape, while the $D$ correspon…
birth_listdeath_list