Persistence

org.appliedtopology.tda4j.Persistence
object Persistence

Attributes

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

Members list

Type members

Classlikes

enum Engine

Which algorithm computes the diagram. All give the same bars; they differ in cost and in the representatives.

Which algorithm computes the diagram. All give the same bars; they differ in cost and in the representatives.

  • Auto (default): Ripser for the Vietoris-Rips complex of points or a metric space (ParallelRipser instead when there is more than one thread and it applies), FastCubical for an image (or cubical grid) of dimension 2 and up when cycles are asked for, Cohomology for everything else.
  • Ripser: Bauer's Ripser, for the Vietoris-Rips complex of points or a metric space only; the fastest there. Cycles or cocycles.
  • Cohomology: persistent cohomology of any complex. Cycles or cocycles.
  • FastCubical: union-find on an image and its dual grid, for images of dimension 2 and up. Cycles only.
  • Chunks: homology by clearing and compression, with union-find in degrees 0 and 1. Cycles or cocycles. Slow in degree 2 and up on Vietoris-Rips and Čech complexes, which have many cells of the top dimension.
  • Naive: the reference algorithm, one cell at a time. Cycles or cocycles.
  • ParallelRipser: Ripser's reduction cut into blocks that run on every processor, for the Vietoris-Rips complex of points or a metric space with Z/p coefficients (p a prime up to 46,000), and bars of positive length only. Auto chooses it instead of Ripser when there is more than one thread and it applies. Cocycles are native; cycles cost one more (sequential) reduction. Its representatives are computed when first read unless computeAllRepresentatives is true (the default). On JavaScript it runs on its one thread. It ranks the edges within the threshold, so its memory grows with their number (and its construction with the square of the number of points). Ties between simplices of equal diameter are broken differently from Ripser's, so the bars are the same and the representatives need not be; edgeTies chooses the order of equal edges it breaks them by.

Each engine computes one kind natively and derives the other from its pairing (Involution), which costs one more reduction: cocycles are native to Ripser and Cohomology, cycles to the others.

Attributes

Source
Persistence.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Input

Attributes

Companion
trait
Source
Persistence.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Input.type
trait Input[CellT]

What Persistence can take. Points, metric spaces, images and streams convert to one where it's expected; to teach Persistence a new kind of input, give a Conversion[YourInput, Persistence.Input[CellT]] that implements stream, scale and cells (the rest are shortcuts to faster engines, off by default).

What Persistence can take. Points, metric spaces, images and streams convert to one where it's expected; to teach Persistence a new kind of input, give a Conversion[YourInput, Persistence.Input[CellT]] that implements stream, scale and cells (the rest are shortcuts to faster engines, off by default).

Attributes

Companion
object
Source
Persistence.scala
Supertypes
class Object
trait Matchable
class Any

Types

How Engine.ParallelRipser orders two simplices of one dimension filed under the same edge: LargerIndexFirst (default; the larger combinatorial index is older, as in Ripser) or SmallerIndexFirst (the order of Bauer's hybrid, together with EdgeTies.Colexicographic). Every order gives the same bars; they differ in which pairs are apparent. Detail: ParallelPackedCohomology.BlockOrder.

How Engine.ParallelRipser orders two simplices of one dimension filed under the same edge: LargerIndexFirst (default; the larger combinatorial index is older, as in Ripser) or SmallerIndexFirst (the order of Bauer's hybrid, together with EdgeTies.Colexicographic). Every order gives the same bars; they differ in which pairs are apparent. Detail: ParallelPackedCohomology.BlockOrder.

Attributes

Source
Persistence.scala

How Engine.ParallelRipser and (when given) Engine.Ripser rank edges of one length: each simplex is filed under the last, in this order, of its longest edges. Lexicographic (default), ReverseLexicographic, Colexicographic (increasing combinatorial index, the order of Bauer's hybrid), ReverseColexicographic (decreasing index, Ripser's own order of equal edges) and Shuffled (a hash, as a control). Every order gives the same bars; they differ in how many pairs are apparent, so in the work on inputs with many equal distances. Detail: ParallelPackedCohomology.EdgeTies.

How Engine.ParallelRipser and (when given) Engine.Ripser rank edges of one length: each simplex is filed under the last, in this order, of its longest edges. Lexicographic (default), ReverseLexicographic, Colexicographic (increasing combinatorial index, the order of Bauer's hybrid), ReverseColexicographic (decreasing index, Ripser's own order of equal edges) and Shuffled (a hash, as a control). Every order gives the same bars; they differ in how many pairs are apparent, so in the work on inputs with many equal distances. Detail: ParallelPackedCohomology.EdgeTies.

Attributes

Source
Persistence.scala

Value members

Concrete methods

def apply[CellT](input: Input[CellT], maxDimension: Optional[Int] = ..., maxFiltrationValue: Optional[Double] = ..., complex: PointCloudComplex = ..., characteristic: Int = ..., engine: Engine = ..., includeZeroLength: Boolean = ..., representatives: Representatives = ..., computeAllRepresentatives: Boolean = ..., threads: Optional[Int] = ..., coefficients: Optional[Coefficients] = ..., edgeTies: Optional[EdgeTies] = ..., blockOrder: Optional[BlockOrder] = ...): PersistenceDiagram[CellT]

Attributes

Source
Persistence.scala

Concrete fields

Attributes

Source
Persistence.scala

The top homological degree computed when maxDimension is not given (and the input does not fix it).

The top homological degree computed when maxDimension is not given (and the input does not fix it).

Attributes

Source
Persistence.scala
val EdgeTies: EdgeTies.type

Attributes

Source
Persistence.scala