SheehyRipsSimplexStream

org.appliedtopology.tda4j.SheehyRipsSimplexStream
See theSheehyRipsSimplexStream companion class

Attributes

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

Members list

Value members

Concrete methods

def apply(ambientMetricSpace: FiniteMetricSpace[Int], epsilon: Double, firstPoint: Int = ..., keepCriterion: PartialFunction[Simplex[Int], Boolean] = ..., maxFiltrationValue: Option[Double] = ..., parallelFiltrationValue: Boolean = ...): SheehyRipsSimplexStream

The sparse Rips filtration of ambientMetricSpace, computing the greedy permutation (with epsilon checked first).

The sparse Rips filtration of ambientMetricSpace, computing the greedy permutation (with epsilon checked first).

Attributes

Source
SheehyRipsStream.scala
def edgeBirth(lambdaP: Double, lambdaQ: Double, d: Double, epsilon: Double): Double

CJS 2015 Algorithm 3 (EdgeBirthTime), doubled into diameter units and extended with the vanish clamp described in the class doc. lambdaP/lambdaQ are the two endpoints' own insertion radii (order doesn't matter -- the smaller is found internally, exactly like the paper's own leading swap step), d their ambient (undoubled) distance. Returns Double.PositiveInfinity for a pair that never appears.

CJS 2015 Algorithm 3 (EdgeBirthTime), doubled into diameter units and extended with the vanish clamp described in the class doc. lambdaP/lambdaQ are the two endpoints' own insertion radii (order doesn't matter -- the smaller is found internally, exactly like the paper's own leading swap step), d their ambient (undoubled) distance. Returns Double.PositiveInfinity for a pair that never appears.

Attributes

Source
SheehyRipsStream.scala
def filtrationValueOverride(ambientMetricSpace: FiniteMetricSpace[Int], permutation: GreedyPermutation, epsilon: Double): PartialFunction[Simplex[Int], Double]

The value of a simplex: 0 for a vertex; otherwise the largest edgeBirth of its edges, or Infinity if that exceeds the earliest vanishDoubled of its vertices (Section 5.3). Memoized.

The value of a simplex: 0 for a vertex; otherwise the largest edgeBirth of its edges, or Infinity if that exceeds the earliest vanishDoubled of its vertices (Section 5.3). Memoized.

Attributes

Source
SheehyRipsStream.scala
def maxFiniteFiltrationValue(ambientMetricSpace: FiniteMetricSpace[Int], permutation: GreedyPermutation, epsilon: Double): Double

The largest FINITE edge birth this construction produces on ambientMetricSpace -- a valid maxFiltrationValue default because every finite simplex's own value is a max over its edges (see the class doc). Materializes every pairwise edgeBirth once, O(n^2) like the rest of this reference implementation. 0.0 if every pair is excluded (degenerate: a single point, or an epsilon too small for any two points to ever connect).

The largest FINITE edge birth this construction produces on ambientMetricSpace -- a valid maxFiltrationValue default because every finite simplex's own value is a max over its edges (see the class doc). Materializes every pairwise edgeBirth once, O(n^2) like the rest of this reference implementation. 0.0 if every pair is excluded (degenerate: a single point, or an epsilon too small for any two points to ever connect).

Attributes

Source
SheehyRipsStream.scala
def vanishDoubled(lambda: Double, epsilon: Double): Double

vanish, doubled (in diameter units): after it, p enters no new simplex.

vanish, doubled (in diameter units): after it, p enters no new simplex.

Attributes

Source
SheehyRipsStream.scala