SparseMetricSpace

org.appliedtopology.tda4j.streams.SparseMetricSpace
class SparseMetricSpace[VertexT](metricSpace: FiniteMetricSpace[VertexT], diameter: Double)(using evidence$1: Ordering[VertexT]) extends FiniteMetricSpace[VertexT]

****** Sparse Metric Spaces and the Dory storage *******

Attributes

Experimental
true
Graph
Supertypes
trait FiniteMetricSpace[VertexT]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def contains(x: VertexT): Boolean

Delegated

Delegated

Attributes

Definition Classes
override def distance(x: VertexT, y: VertexT): Double

Distance in the metric space. Takes two indices and returns a non-negative real number.

Distance in the metric space. Takes two indices and returns a non-negative real number.

Value parameters

x

Index of first point

y

Index of second point

Attributes

Returns

Distance between x and y

Definition Classes
override def elements: Iterable[VertexT]

Access to all points in the metric space. Implemented by eg scala.collections.Range for simple Int-indexed spaces, but this definition gives more space for different underlying possible representations.

Access to all points in the metric space. Implemented by eg scala.collections.Range for simple Int-indexed spaces, but this definition gives more space for different underlying possible representations.

Attributes

Returns

Iterable that returns all points in the metric space

Definition Classes
override def size: Int

Number of points represented by this metric space.

Number of points represented by this metric space.

Attributes

Definition Classes

Concrete fields

val neighborhoods: Map[VertexT, Seq[(VertexT, Double)]]
val spatialQuery: SpatialQuery[VertexT]

Inherited fields

lazy val minimumEnclosingRadius: Double

Beyond this radius, the Vietoris-Rips complex is a cone and will have no further homological structure. See e.g. the Ripser paper, page 412.

Beyond this radius, the Vietoris-Rips complex is a cone and will have no further homological structure. See e.g. the Ripser paper, page 412.

Attributes

Inherited from:
FiniteMetricSpace