PowerDistance

org.appliedtopology.tda4j.PowerDistance
See thePowerDistance companion trait
object PowerDistance

Attributes

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

Members list

Value members

Concrete methods

Same, but caches the full N×N squared-distance matrix. Worth it when the ambient dimension is large and N is moderate (the paper's 24- and 2352-dimensional examples); O(N²) memory.

Same, but caches the full N×N squared-distance matrix. Worth it when the ambient dimension is large and N is moderate (the paper's 24- and 2352-dimensional examples); O(N²) memory.

Attributes

Source
AlphaComplexDQP.scala
def euclidean(points: Array[Array[Double]], weights: Option[Array[Double]] = ...): PowerDistance

Sites given by coordinates; squared distances computed on demand. Memory O(N·m), time O(m) per squared distance.

Sites given by coordinates; squared distances computed on demand. Memory O(N·m), time O(m) per squared distance.

Attributes

Source
AlphaComplexDQP.scala
def fromSquaredDistances(d2: Array[Array[Double]], weights: Option[Array[Double]] = ...): PowerDistance

Sites given by an explicit squared-distance matrix (no coordinates: the witness map will be unavailable, everything else works).

Sites given by an explicit squared-distance matrix (no coordinates: the witness map will be unavailable, everything else works).

Attributes

Source
AlphaComplexDQP.scala