Module ateams.arithmetic.PHATWrapper

Functions

def PHATComputePersistencePairs(boundary, filtration, homology, breaks)

Computes the persistence pairs of the complex corresponding to the provided boundary matrix and filtration.

Args

boundary : np.array
Flattened boundary matrix given by Complex.matrices.full.
filtration : np.array
Permutation on the order of the columns of the boundary matrix. Here, we assume that only cells of dimension homology are being permuted. Shuffling the order of cells of different dimensions will result in incorrect computations.
homology : int
Homology group we're interested in; corresponds to the dimension of permuted cells.
breaks : np.array
Index ranges for cells by dimension, given by Complex.breaks.

Returns

A list of [birth, death] pairs.