Relative

org.appliedtopology.tda4j.Relative
object Relative

The pair (X, A) as a stream: the cells of X that are not in the subcomplex A, with boundaries that leave out the faces in A, so that its persistent homology is the relative one, H(X_t, A_t) with A_t = A ∩ X_t.

val rips = VietorisRips(points, maxDimension = 2)
Persistence(Relative.ofVertices(rips, Set(0, 1, 2)))   // the pairs of the Rips complex modulo the one on 0, 1, 2

The subcomplex has to be closed under faces (a face of a cell in A is in A), and each of its cells enters X no later than it would as a cell of X on its own; neither is checked. The bars carry chains of RelativeCells, the cell of X being cell. For a connected complex whose vertices all enter together, relative to one vertex, that is the reduced homology: the bar of the whole complex in degree 0 is gone and the rest stays.

Attributes

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

Members list

Value members

Concrete methods

def apply[CellT](stream: StratifiedCellStream[CellT, Double], inSubcomplex: CellT => Boolean)(using cells: OrderedCell { type Self = CellT; }): StratifiedCellStream[RelativeCell[CellT], Double]

stream modulo the cells for which inSubcomplex holds.

stream modulo the cells for which inSubcomplex holds.

Attributes

Source
Relative.scala

grid modulo its boundary, H(X_t, X_t ∩ ∂X) for the image or volume X the grid fills: the cubes that are not on the boundary (CubicalGridStream.onBoundary). A curve that runs from boundary to boundary is a cycle of the pair, like a closed one. The image itself is the top class, born when its last pixel enters.

grid modulo its boundary, H(X_t, X_t ∩ ∂X) for the image or volume X the grid fills: the cubes that are not on the boundary (CubicalGridStream.onBoundary). A curve that runs from boundary to boundary is a cycle of the pair, like a closed one. The image itself is the top class, born when its last pixel enters.

val grid = CubicalImage.fromGrayscale2D(pixels)
Persistence(Relative.ofBoundary(grid), maxDimension = 2)

Attributes

Source
Relative.scala
def ofVertices[VertexT : Ordering](stream: StratifiedCellStream[Simplex[VertexT], Double], vertices: Set[VertexT]): StratifiedCellStream[RelativeCell[Simplex[VertexT]], Double]

stream of simplices modulo the subcomplex of the simplices all of whose vertices are in vertices.

stream of simplices modulo the subcomplex of the simplices all of whose vertices are in vertices.

Attributes

Source
Relative.scala