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):Ripserfor the Vietoris-Rips complex of points or a metric space (ParallelRipserinstead when there is more than one thread and it applies),FastCubicalfor an image (or cubical grid) of dimension 2 and up when cycles are asked for,Cohomologyfor 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 withZ/pcoefficients (p a prime up to 46,000), and bars of positive length only.Autochooses it instead ofRipserwhen 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 unlesscomputeAllRepresentativesis 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 fromRipser's, so the bars are the same and the representatives need not be;edgeTieschooses 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 Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article