PackedCubicalCohomologyEngine

org.appliedtopology.tda4j.PackedCubicalCohomologyEngine
See thePackedCubicalCohomologyEngine companion object
open class PackedCubicalCohomologyEngine[C](grid: CubicalGridStream, topDim: Int, ranks: GridRanks, useApparentPairs: Boolean = ..., useUnionFind: Boolean = ...)(using evidence$1: Field { type Self = C; })

Persistent cohomology of a cubical grid by Bauer's Ripser algorithm on the grid itself: what CellularCohomologyEngine computes on a CubicalGridStream, or on its cells up to dimension topDim as a LimitedCubicalGridStream shows them -- the same bars, pairs, cocycles and cycles, term for term and in the same list order -- without a Cube, a hash of one or a Chain inside the reduction.

A cell is its index in the doubled grid (KMM encoding, see Cube). Within a dimension cells are ordered by the rank of their value (GridRanks) and then by index: the generic engine's order there, value ascending, then the encoding ascending. Boundaries and coboundaries come from index arithmetic. Clearing as in the generic engine; apparent pairs (a cell whose oldest same-value cofacet has it as its youngest same-value facet) are paired without a reduction and their columns rebuilt when another column needs them, which changes no output (useApparentPairs = false turns them off). Degree 0 is paired by union-find over the edges, the elder rule, with the indicator of the dying component as the cocycle (useUnionFind = false reduces the vertices' coboundaries instead, with the same output). Cycles come from the involution on the same pairs, specialised to packed cells as PackedRipserCohomologyEngine does it. A cell every pixel around which is masked (NaN) is not in the complex: it has rank GridRanks.masked, and is never listed nor met as a cofacet.

Attributes

Companion
object
Experimental
true
Source
PackedCubicalCohomology.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def persistentCohomology(includeZeroLength: Boolean = ...): List[PersistenceBar[Double, Chain[Cube, C]]]

Every bar with its cocycle, as CellularCohomologyEngine.persistentCohomology gives it on the stream: degrees up to topDim - 1 for a truncated grid (its declared homologyDegreeLimit), all of them for the whole grid.

Every bar with its cocycle, as CellularCohomologyEngine.persistentCohomology gives it on the stream: degrees up to topDim - 1 for a truncated grid (its declared homologyDegreeLimit), all of them for the whole grid.

Attributes

Source
PackedCubicalCohomology.scala
def persistentHomology(includeZeroLength: Boolean = ...): List[PersistenceBar[Double, Chain[Cube, C]]]

Every bar with its cycle, as CellularCohomologyEngine.persistentHomology gives it on the stream: degrees up to topDim - 1 for a truncated grid (its declared homologyDegreeLimit), all of them for the whole grid.

Every bar with its cycle, as CellularCohomologyEngine.persistentHomology gives it on the stream: degrees up to topDim - 1 for a truncated grid (its declared homologyDegreeLimit), all of them for the whole grid.

Attributes

Source
PackedCubicalCohomology.scala