ZigzagPersistence

org.appliedtopology.tda4j.ZigzagPersistence

Zigzag persistent homology: the homology of a sequence of complexes in which each is included in the next or the next in it, in either direction, as a barcode of intervals. A sequence K_0, K_1, ..., K_n is read in positions 0..n, and a bar [b, d) is a class that is in the homology of K_b, ..., K_{d-1} and in neither neighbour; the d of a class still there at K_n is infinite. With every arrow forward this is the ordinary barcode of a filtration with one cell, or one batch of cells, entering at each position.

val steps = Seq(Add(Simplex(0)), Add(Simplex(1)), Add(Simplex(0, 1)), Remove(Simplex(0, 1)))
val diagram = ZigzagPersistence(steps)

The input is a list of ZigzagSteps (apply), a list of complexes each included in the next or the next in it (ofComplexes), with the union or the intersection of consecutive complexes put between them when they are not (Link.Union, as for a time-varying point cloud). The result is an ordinary PersistenceDiagram: its bars have a representative, a cycle in the complex at the bar's birth, and every tool for diagrams applies.

The decomposition is made from left to right, one arrow at a time, on the homology of the complexes (Carlsson and de Silva): a basis of the homology at the current position, each class with its birth, in an order that the arrows decide (a class born by an arrow forward goes last, one born in the kernel of an arrow backward goes first). An arrow forward reduces the images of the classes in that order and the classes that vanish end. An arrow backward puts the classes of the smaller complex in the basis of the current homology, adapted to the order, and the classes outside its image end. Only the dimensions an arrow touches are recomputed, by sparse elimination on the boundary matrices of the larger complex of the arrow: each arrow costs a reduction of those, so the method is meant for sequences of up to a few thousand cells in the dimensions that change.

Attributes

Experimental
true
Source
ZigzagPersistence.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

enum Link

What is put between two consecutive complexes that are not included in each other.

What is put between two consecutive complexes that are not included in each other.

Attributes

Source
ZigzagPersistence.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply[CellT](steps: Seq[ZigzagStep[CellT]], initial: Iterable[CellT] = ..., maxDimension: Int = ..., characteristic: Int = ..., coefficients: Optional[Coefficients] = ...): PersistenceDiagram[CellT]

The zigzag of the complexes initial, then initial with the first step done, and so on; position 0 is initial. Cells of dimension above maxDimension + 1 are left out, because they cannot change the homology up to maxDimension.

The zigzag of the complexes initial, then initial with the first step done, and so on; position 0 is initial. Cells of dimension above maxDimension + 1 are left out, because they cannot change the homology up to maxDimension.

Attributes

Source
ZigzagPersistence.scala
def ofComplexes[CellT](complexes: Seq[Iterable[CellT]], link: Link = ..., maxDimension: Int = ..., characteristic: Int = ..., coefficients: Optional[Coefficients] = ...): PersistenceDiagram[CellT]

The zigzag of a list of complexes, given by their cells, each included in the next or the next in it, or connected through the Link chosen.

The zigzag of a list of complexes, given by their cells, each included in the next or the next in it, or connected through the Link chosen.

Attributes

Source
ZigzagPersistence.scala