cechmate.filtrations.Cech

class cechmate.filtrations.Cech(max_dim=3, verbose=True)[source]

Compute the Cech filtration of a Euclidean point set for simplices up to order self.max_dim.

Examples

>>> r = Cech(max_dim=3)
>>> simplices = r.build(X)
>>> diagrams = r.diagrams(simplices)
__init__(max_dim=3, verbose=True)

Default constructor

Parameters:
  • max_dim (int) – Maximum dimension of simplices returned in constructed filtration.
  • verbose (boolean) – If True, then print logging statements.

Methods

__init__([max_dim, verbose]) Default constructor
build(X) Compute the Cech filtration of a Euclidean point set for simplices up to order self.max_dim.
diagrams([simplices, show_inf]) Compute persistence diagrams for the simplices.
build(X)[source]

Compute the Cech filtration of a Euclidean point set for simplices up to order self.max_dim.

Parameters:X (Nxd array) – N Euclidean vectors in d dimensions
Returns:simplices – Cech filtration for the data X
diagrams(simplices=None, show_inf=False)

Compute persistence diagrams for the simplices.

Parameters:
  • simplices – simplices or filtration built from build method.
  • show_inf (Boolean) – Determines whether or not to return points that never die.
Returns:

dgms (list of diagrams) – the persistence diagram for Hk