DistanceToMeasure
org.appliedtopology.tda4j.DistanceToMeasure
object 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 Objecttrait Matchableclass Any
- Self type
-
DistanceToMeasure.type
Members list
In this article