EulerCharacteristicCurve

org.appliedtopology.tda4j.EulerCharacteristicCurve
See theEulerCharacteristicCurve companion object
final case class EulerCharacteristicCurve(scales: IndexedSeq[Double], values: IndexedSeq[Long])

The Euler characteristic of a filtered complex as a function of the scale: the number of vertices, minus the edges, plus the triangles, ... of the cells with filtration value at most t. It is a step function, so the curve keeps the scales where it steps and the value from there on.

val curve = EulerCharacteristicCurve(points)               // Vietoris-Rips, simplices up to dimension 2
curve(0.3)                                                 // the Euler characteristic at scale 0.3
curve.sample(0.0, 1.0, 50)                                 // 50 evenly spaced samples

A vectorization that needs no persistence: EulerCharacteristicCurve.apply counts the cliques of every edge's lens graph, so it stores no simplices and sorts nothing.

Value parameters

scales

The scales where the curve changes, strictly increasing; for a point cloud the first is 0.0, where the vertices appear.

values

values(i) is the Euler characteristic from scales(i) up to (not including) scales(i + 1).

Attributes

Companion
object
Experimental
true
Source
EulerCharacteristicCurve.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(t: Double): Long

The Euler characteristic at scale t: the complex of all cells with filtration value at most t. 0 below the first scale, where the complex is empty.

The Euler characteristic at scale t: the complex of all cells with filtration value at most t. 0 below the first scale, where the complex is empty.

Attributes

Source
EulerCharacteristicCurve.scala
def sample(ts: Seq[Double]): Array[Long]

The curve at each of ts.

The curve at each of ts.

Attributes

Source
EulerCharacteristicCurve.scala
def sample(tMin: Double, tMax: Double, resolution: Int): Array[Long]

The curve at resolution evenly spaced points across [tMin, tMax], both ends included (as Vectorization.landscape samples).

The curve at resolution evenly spaced points across [tMin, tMax], both ends included (as Vectorization.landscape samples).

Attributes

Source
EulerCharacteristicCurve.scala

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala