commutazzio.persistence package

Submodules

commutazzio.persistence.PD_animation module

Created on Wed Jan 19 11:51:00 2022

@author: kasumi

commutazzio.persistence.PD_animation.PD_animation(df)

commutazzio.persistence.format_conversion module

Created on Wed Dec 8 12:31:20 2021

@author: kasumi

commutazzio.persistence.format_conversion.diagrams_d2g(diagrams) list[tuple[int, (<class 'float'>, <class 'float'>)]]

convert diagrams in dionysus to a diagram in gudhi

commutazzio.persistence.format_conversion.filtration_g2d(simplex_tree)

convert a filtration in a simplex tree (format in gudhi) to a filtration in dionysus (generator object to dionysus._dionysus.Filtration)

commutazzio.persistence.pd_points3d module

Created on Wed Dec 1 14:46:51 2021

@author: kasumi

class commutazzio.persistence.pd_points3d.PD_Points3D(points3d, method='alpha', is_squared=True, characteristic=2)

Bases: object

collection of persistence diagrams of the input three-dimensional data

diagram_multiplicity_count(diagrams, data_type='gudhi')
filtration()

get the filtration

info(dimensions=[0, 1, 2], epsilon=0.001, prune=True, number_output=10)

return significant points in all the persistence diagrams epsilon is the threshold of lifetime

static isclose(point, array)
omnifield_persistence_primes()

return outstanding primes https://mrzv.org/software/dionysus2/tutorial/omni-field.html

pd_formatter(dim, format='distance')

Output dots of a persistence diagram used for computing Wasserstein distance

plot_0D(reduced=False, plotrange=(0, 3))
plot_1D(reduced=False, plotrange=(0, 3))
plot_2D(reduced=False, plotrange=(0, 3))
plot_all()

Plot the persistence diagram using giotto-tda

class commutazzio.persistence.pd_points3d.pd_multiplicity(dim: int, birth: float, death: float, count: int)

Bases: object

birth: float
count: int
death: float
dim: int
commutazzio.persistence.pd_points3d.wasserstein_distance(pd1, pd2, dim, order=1.0, internal_p=2.0)

Calculates the wasserstein distance at the specified dimension between two PD_Points3D object.

Module contents