EuclideanMetricSpace

org.appliedtopology.tda4j.streams.EuclideanMetricSpace
See theEuclideanMetricSpace companion object
class EuclideanMetricSpace(val pts: Array[Array[Double]]) extends FiniteMetricSpace[Int]

Takes in an point cloud and computes the Euclidean distance on demand.

Value parameters

pts

Point cloud matrix represented as a Seq[Seq[Double]]. The class expects but does not enforce:

  • pts(x1).size == pts(x2).size for all x1,x2

Attributes

Companion
object
Experimental
true
Graph
Supertypes
trait FiniteMetricSpace[Int]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def contains(x: Int): Boolean

Attributes

Definition Classes
def distance(x: Int, y: Int): 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

def elements: Iterable[Int]

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

def neighbors(qp: Array[Double], eps: Double): Seq[Int]
def pointSqDistance(x: Array[Double], y: Array[Double]): Double
def size: Int

Number of points represented by this metric space.

Number of points represented by this metric space.

Attributes

Concrete fields

val pts: Array[Array[Double]]
lazy val vpdf: DistanceFunction[Array[Double]]
lazy val vpt: VPTree[Array[Double], Array[Double]]

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