WitnessGeometry

org.appliedtopology.tda4j.WitnessGeometry
open class WitnessGeometry(val ambientMetricSpace: FiniteMetricSpace[Int], val landmarks: IndexedSeq[Int])

The distances between landmarks and witnesses that a witness complex is built from (de Silva and Carlsson 2004; JavaPlex's WitnessStream). Every point is a witness, landmarks included. Landmark i (0 until landmarks.size) is point landmarks(i); D(l)(n) is the distance from landmark l to witness n, an L x N matrix built once. Assumes the metric space's elements are 0 until size.

Attributes

Experimental
true
Source
WitnessStream.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def mDim(k: Int, witness: Int): Double

The (k+1)-th nearest landmark's distance to witness n (0-indexed: mDim(0, n) is the nearest-landmark distance). Valid for 0 <= k < L. This is JavaPlex's WitnessStream.m[k][n] -- no sentinel zero prepended, unlike WitnessMetricSpace.mNu below (that sentinel is a LazyWitnessStream-only device).

The (k+1)-th nearest landmark's distance to witness n (0-indexed: mDim(0, n) is the nearest-landmark distance). Valid for 0 <= k < L. This is JavaPlex's WitnessStream.m[k][n] -- no sentinel zero prepended, unlike WitnessMetricSpace.mNu below (that sentinel is a LazyWitnessStream-only device).

Attributes

Source
WitnessStream.scala
def witnessValue(sigma: IndexedSeq[Int], m: Int => Double): Double

The witness value of the landmark set sigma for the per-witness threshold m: the minimum over witnesses n of max(0, max over l in sigma of D(l)(n) - m(n)), as in JavaPlex.

The witness value of the landmark set sigma for the per-witness threshold m: the minimum over witnesses n of max(0, max over l in sigma of D(l)(n) - m(n)), as in JavaPlex.

Attributes

Source
WitnessStream.scala

Concrete fields

val D: Array[Array[Double]]

Attributes

Source
WitnessStream.scala
val L: Int

Attributes

Source
WitnessStream.scala
val N: Int

Attributes

Source
WitnessStream.scala
val landmarks: IndexedSeq[Int]

Attributes

Source
WitnessStream.scala