Engine

org.appliedtopology.tda4j.Persistence.Engine
enum Engine

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
Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case Auto extends Engine

Attributes

Source
Persistence.scala
case Chunks extends Engine

Attributes

Source
Persistence.scala
case Cohomology extends Engine

Attributes

Source
Persistence.scala
case FastCubical extends Engine

Attributes

Source
Persistence.scala
case Naive extends Engine

Attributes

Source
Persistence.scala
case ParallelRipser extends Engine

Attributes

Source
Persistence.scala
case Ripser extends Engine

Attributes

Source
Persistence.scala