PersistenceDiagram

org.appliedtopology.tda4j.PersistenceDiagram
See thePersistenceDiagram companion object
trait PersistenceDiagram[CellT]

A finished persistence computation as a plain, immutable value: the bars with their representative chains, plus what is needed to read them at a smaller parameter. What Persistence(...) returns, and what HomologyState.snapshotAt(f) takes from a cursor.

The coefficient field is chosen at runtime (characteristic = 17, ...), so its type is the member Coefficient; import diagram.given brings the field into scope for arithmetic on representatives.

Attributes

Companion
object
Experimental
true
Source
PersistenceDiagram.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Types

Attributes

Source
PersistenceDiagram.scala

Value members

Abstract methods

def bars: List[PersistenceBar[Double, Chain[CellT, Coefficient]]]

The bars of degree 0 .. maxDimension, each with its representative (a cycle at birth). Zero-length bars are absent unless the diagram was computed with includeZeroLength = true. Reading a representative can be where it is computed (Persistence.Engine.ParallelRipser with computeAllRepresentatives = false).

The bars of degree 0 .. maxDimension, each with its representative (a cycle at birth). Zero-length bars are absent unless the diagram was computed with includeZeroLength = true. Reading a representative can be where it is computed (Persistence.Engine.ParallelRipser with computeAllRepresentatives = false).

Attributes

Source
PersistenceDiagram.scala
def lastFiltrationValue: Double

The filtration value of the last cell of the complex: a class alive at f is essential only from here on.

The filtration value of the last cell of the complex: a class alive at f is essential only from here on.

Attributes

Source
PersistenceDiagram.scala
def maxDimension: Int

The top homological degree computed.

The top homological degree computed.

Attributes

Source
PersistenceDiagram.scala
def scale: Option[Double]

The scale longerThanFraction measures persistence against by default (a point cloud's minimum enclosing radius).

The scale longerThanFraction measures persistence against by default (a point cloud's minimum enclosing radius).

Attributes

Source
PersistenceDiagram.scala

Concrete methods

def at(f: Double): Of[CellT, Coefficient]

The diagram truncated at f: bars born at or before f; a class alive at f becomes [birth, f], or stays essential when f is at or past lastFiltrationValue.

The diagram truncated at f: bars born at or before f; a class alive at f becomes [birth, f], or stays essential when f is at or past lastFiltrationValue.

Attributes

Source
PersistenceDiagram.scala
def bettiNumbers: Vector[Int]

dim H_k for k = 0 .. maxDimension: the classes alive at the end of the diagram. For a whole diagram these are the essential classes, the Betti numbers of the complex; for at(f) they are the Betti numbers at f (d.at(0.9).bettiNumbers).

dim H_k for k = 0 .. maxDimension: the classes alive at the end of the diagram. For a whole diagram these are the essential classes, the Betti numbers of the complex; for at(f) they are the Betti numbers at f (d.at(0.9).bettiNumbers).

Attributes

Source
PersistenceDiagram.scala
def dim(k: Int): Of[CellT, Coefficient]

The bars of degree k.

The bars of degree k.

Attributes

Source
PersistenceDiagram.scala
def essential: List[PersistenceBar[Double, Chain[CellT, Coefficient]]]

Bars that never die.

Bars that never die.

Attributes

Source
PersistenceDiagram.scala
def isEmpty: Boolean

Attributes

Source
PersistenceDiagram.scala
def longerThan(minPersistence: Double): Of[CellT, Coefficient]

Essential bars and bars with persistence strictly greater than minPersistence: diagram.longerThan(0.1).

Essential bars and bars with persistence strictly greater than minPersistence: diagram.longerThan(0.1).

Attributes

Source
PersistenceDiagram.scala
def longerThanFraction(fraction: Double = ..., scale: Optional[Double] = ...): Of[CellT, Coefficient]

Essential bars and bars longer than fraction of scale (default: the diagram's own scale -- a point cloud's minimum enclosing radius -- else its filtration range). With the defaults, the bars the MATLAB/CLI facade shows. A rule of thumb for what to show, not a test of which bars are noise; BootstrapBand estimates that from the data.

Essential bars and bars longer than fraction of scale (default: the diagram's own scale -- a point cloud's minimum enclosing radius -- else its filtration range). With the defaults, the bars the MATLAB/CLI facade shows. A rule of thumb for what to show, not a test of which bars are noise; BootstrapBand estimates that from the data.

Attributes

Source
PersistenceDiagram.scala
def longest: Option[PersistenceBar[Double, Chain[CellT, Coefficient]]]

The most persistent bar (an essential one counts as infinitely persistent).

The most persistent bar (an essential one counts as infinitely persistent).

Attributes

Source
PersistenceDiagram.scala
def longest(n: Int): List[PersistenceBar[Double, Chain[CellT, Coefficient]]]

The n most persistent bars, longest first.

The n most persistent bars, longest first.

Attributes

Source
PersistenceDiagram.scala

Which kind of representative the bars carry: what Persistence(...) was asked for, None for a diagram that does not say (one built by hand, or by an engine's cursor). CircularCoordinates reads a cocycle straight off a diagram that says Some(Representatives.Cocycles) and recovers it otherwise.

Which kind of representative the bars carry: what Persistence(...) was asked for, None for a diagram that does not say (one built by hand, or by an engine's cursor). CircularCoordinates reads a cocycle straight off a diagram that says Some(Representatives.Cocycles) and recovers it otherwise.

Attributes

Source
PersistenceDiagram.scala

Whether the representative of a finite bar is the cycle that its death cell bounds, which is zero in homology from the bar's death on. Then the representatives of the bars alive at a value t are a basis of the homology there, one for each bar, and each of them generates exactly its bar: what PersistenceMap needs to write a map in terms of bars. True of the cycles of the cohomology engines and of Ripser; false of the cycles of the naive and chunked engines, which are the generators the reduction works with and stay nonzero classes after their bar ends, and of a diagram that does not say.

Whether the representative of a finite bar is the cycle that its death cell bounds, which is zero in homology from the bar's death on. Then the representatives of the bars alive at a value t are a basis of the homology there, one for each bar, and each of them generates exactly its bar: what PersistenceMap needs to write a map in terms of bars. True of the cycles of the cohomology engines and of Ripser; false of the cycles of the naive and chunked engines, which are the generators the reduction works with and stay nonzero classes after their bar ends, and of a diagram that does not say.

Attributes

Source
PersistenceDiagram.scala
def size: Int

Attributes

Source
PersistenceDiagram.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
PersistenceDiagram.scala
def triples: List[(Int, Double, Double)]

(dimension, birth, death) triples, the shape diagramAt returns.

(dimension, birth, death) triples, the shape diagramAt returns.

Attributes

Source
PersistenceDiagram.scala

Givens

Givens