HarmonicRepresentatives

org.appliedtopology.tda4j.HarmonicRepresentatives

Harmonic representatives of the bars of the ORDINARY barcode (Basu and Cox, "Harmonic persistent homology"): each bar [s, t) gets the harmonic cycle at its birth value s, a chain that is a cycle and orthogonal to every boundary of the complex at s, picked out by the persistence module alone. A bar is a class born at s that dies at t, which is a quotient of subspaces of the harmonic chains H_p(K_s) (the classes born by s and dying by t, modulo those dying before t), and its harmonic representative is that quotient written as the orthogonal complement of the one inside the other. So the representative depends on the filtration only through its values: unlike the HarmonicChainBarcode, it does not depend on how cells of equal value are ordered.

val rips = VietorisRips(points, maxDimension = 1)
val diagram = HarmonicRepresentatives(rips, maxDimension = 1)
diagram.longest.get.representative   // the harmonic cycle of the longest bar, as a chain at its birth value

The bars are those of Persistence for the same stream (in the coefficients given: reals, the default, or the exact Coefficients.Rationals; harmonic chains need an inner product, so a finite field is refused), with the representative replaced. A bar of multiplicity one has a harmonic subspace of dimension one, so its chain is unique up to a scalar: it is scaled to have 1 at its first cell in the chain order. A group of m bars with the same endpoints has an m-dimensional subspace, and its bars get an orthogonal basis of it (which basis is not canonical, the subspace is). By their Theorem 4.8, Basu and Cox show that among all cycles representing a bar the harmonic one puts the most weight on the cells essential to the bar.

The chains are computed in coordinates of the harmonic chains that the HarmonicChainBarcode run keeps alive at the values involved, with a small linear system for each bar (its size is the Betti number at the birth and the death), so the cost is that of the barcode run plus a Betti-number-sized elimination per bar.

With representatives = Representatives.Cocycles each bar gets the harmonic cocycle of its class in cohomology instead: the same construction on the dual module, whose maps go from a later value to an earlier one (the orthogonal projection of the harmonic cochains at the later value onto those at the earlier one, the adjoint of the maps of homology). The dual bar [s, t) is born at the last value before t, so its representative is the harmonic cochain at that value, a vector that is a cocycle and orthogonal to every coboundary. The cells' inner product identifies cochains with chains, so a harmonic cocycle is written in the same coordinates as a harmonic cycle, and the two differ in which value of the bar they sit at, and in the subspaces they pick out.

Attributes

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

Members list

Value members

Concrete methods

def apply[CellT](stream: StratifiedCellStream[CellT, Double], maxDimension: Optional[Int] = ..., coefficients: Optional[Coefficients] = ..., representatives: Representatives = ..., orthogonalization: Orthogonalization = ...): PersistenceDiagram[CellT]

The ordinary barcode of stream in degrees 0..maxDimension (default as for Persistence), each bar with the Basu-Cox harmonic cycle of its birth as its representative (representatives = Representatives.Cocycles: its harmonic cocycle, at the last value of its bar).

The ordinary barcode of stream in degrees 0..maxDimension (default as for Persistence), each bar with the Basu-Cox harmonic cycle of its birth as its representative (representatives = Representatives.Cocycles: its harmonic cocycle, at the last value of its bar).

Attributes

Source
HarmonicRepresentatives.scala
def ofDiagram[CellT](stream: StratifiedCellStream[CellT, Double], diagram: PersistenceDiagram[CellT], coefficients: Coefficients, representatives: Representatives = ..., orthogonalization: Orthogonalization = ...): PersistenceDiagram[CellT]

The bars of diagram (which must be the barcode of stream in coefficients, from any engine: only the intervals and cells are read, and the numbers of bars with each interval are checked against the harmonic subspaces) with their representatives replaced by the harmonic cycles at their births (or the harmonic cocycles, for representatives = Representatives.Cocycles). A bar of length zero has no harmonic representative and is refused: it is not a class of the persistence module.

The bars of diagram (which must be the barcode of stream in coefficients, from any engine: only the intervals and cells are read, and the numbers of bars with each interval are checked against the harmonic subspaces) with their representatives replaced by the harmonic cycles at their births (or the harmonic cocycles, for representatives = Representatives.Cocycles). A bar of length zero has no harmonic representative and is refused: it is not a class of the persistence module.

Attributes

Source
HarmonicRepresentatives.scala