DistanceToMeasure

org.appliedtopology.tda4j.DistanceToMeasure

The empirical distance to measure (Chazal, Cohen-Steiner, Mérigot, "Geometric inference for probability measures", Found. Comput. Math. 11, 2011) with k neighbours:

f(x) = ( (1/k) sum over the k nearest neighbours y of x of d(x, y)^q )^(1/q)

As in GUDHI, x counts among its own neighbours (so k = 1 gives f = 0) and q defaults to 2.

The SpatialQuery chooses the nearest-neighbour search. BruteForce works for any distances; VantagePointQuery requires the triangle inequality, which an ExplicitMetricSpace does not check.

Attributes

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

Members list

Value members

Concrete methods

def apply(metricSpace: FiniteMetricSpace[Int], spatialQuery: SpatialQuery[Int], k: Int, q: Double = ...): IndexedSeq[Double]

Attributes

Source
DistanceToMeasure.scala
def apply(metricSpace: FiniteMetricSpace[Int], k: Int, q: Double): IndexedSeq[Double]

The distance to measure of every point, by brute-force neighbour search (valid for any distances).

The distance to measure of every point, by brute-force neighbour search (valid for any distances).

Attributes

Source
DistanceToMeasure.scala
def apply(metricSpace: FiniteMetricSpace[Int], k: Int): IndexedSeq[Double]

Attributes

Source
DistanceToMeasure.scala