PersistenceBar

org.appliedtopology.tda4j.PersistenceBar
See thePersistenceBar companion object
case class PersistenceBar[FiltrationT, AnnotationT](dim: Int, lower: BarcodeEndpoint[FiltrationT], upper: BarcodeEndpoint[FiltrationT], annotation: Option[AnnotationT] = ..., cells: Option[Pair[_]] = ...)(using evidence$1: Ordering[FiltrationT])

One bar of a barcode: a degree dim, a lower and an upper endpoint, and optionally an annotation -- in every engine's output, the bar's representative chain.

A finished bar is [birth, death); a class still alive at the end of the filtration is [birth, ∞); a class alive at the value a diagram was truncated at, f, is [birth, f] (closed: it exists at f).

Type parameters

AnnotationT

Type of the annotation (we would expect this to be Chain).

FiltrationT

Type of the filtration parameter

Value parameters

cells

the cell that opens the bar and the one that closes it, when the engine records them (PersistenceBar.birthCell, PersistenceBar.deathCell read them typed). Not part of equality.

Attributes

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

Members list

Value members

Concrete methods

def birth: Double
Extension method from PersistenceBar

Plain numbers for a bar over Double filtration values, so callers need not pattern-match on the endpoint types (open/closed makes no difference to the numbers): birth and death (Infinity for an essential class), persistence = death - birth, and toTriple = (dim, birth, death), the same shape diagramAt returns.

Plain numbers for a bar over Double filtration values, so callers need not pattern-match on the endpoint types (open/closed makes no difference to the numbers): birth and death (Infinity for an essential class), persistence = death - birth, and toTriple = (dim, birth, death), the same shape diagramAt returns.

Attributes

Source
Barcode.scala
def birthCell: Option[CellT]
Extension method from PersistenceBar

The cells of a bar whose annotation is a chain over them, which is how the cell type is known: bar.birthCell is the cell whose entry creates the class (of the bar's dimension, valued at its birth) and bar.deathCell the one that kills it (one dimension up, valued at its death; none for an essential class). Both are None for a bar from an engine that does not record cells, bar.cells.isDefined telling that apart from an essential bar.

The cells of a bar whose annotation is a chain over them, which is how the cell type is known: bar.birthCell is the cell whose entry creates the class (of the bar's dimension, valued at its birth) and bar.deathCell the one that kills it (one dimension up, valued at its death; none for an essential class). Both are None for a bar from an engine that does not record cells, bar.cells.isDefined telling that apart from an essential bar.

Attributes

Source
Barcode.scala
def death: Double
Extension method from PersistenceBar

Plain numbers for a bar over Double filtration values, so callers need not pattern-match on the endpoint types (open/closed makes no difference to the numbers): birth and death (Infinity for an essential class), persistence = death - birth, and toTriple = (dim, birth, death), the same shape diagramAt returns.

Plain numbers for a bar over Double filtration values, so callers need not pattern-match on the endpoint types (open/closed makes no difference to the numbers): birth and death (Infinity for an essential class), persistence = death - birth, and toTriple = (dim, birth, death), the same shape diagramAt returns.

Attributes

Source
Barcode.scala
def deathCell: Option[CellT]
Extension method from PersistenceBar

The cells of a bar whose annotation is a chain over them, which is how the cell type is known: bar.birthCell is the cell whose entry creates the class (of the bar's dimension, valued at its birth) and bar.deathCell the one that kills it (one dimension up, valued at its death; none for an essential class). Both are None for a bar from an engine that does not record cells, bar.cells.isDefined telling that apart from an essential bar.

The cells of a bar whose annotation is a chain over them, which is how the cell type is known: bar.birthCell is the cell whose entry creates the class (of the bar's dimension, valued at its birth) and bar.deathCell the one that kills it (one dimension up, valued at its death; none for an essential class). Both are None for a bar from an engine that does not record cells, bar.cells.isDefined telling that apart from an essential bar.

Attributes

Source
Barcode.scala
override def equals(other: Any): Boolean

Checks whether this instance is equal to that. This universal equality method is defined in AnyRef.

Checks whether this instance is equal to that. This universal equality method is defined in AnyRef.

Attributes

Definition Classes
Equals -> Any
Source
Barcode.scala
override def hashCode: Int

Calculates a hash code value for the object.

Calculates a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns

the hash code value for this object.

Definition Classes
Any
Source
Barcode.scala
def isZeroLength: Boolean

True for [v, v): a cell paired with one entering at the same filtration value, so no class ever exists. Engines leave these out unless asked (includeZeroLength = true).

True for [v, v): a cell paired with one entering at the same filtration value, so no class ever exists. Engines leave these out unless asked (includeZeroLength = true).

Attributes

Source
Barcode.scala
def persistence: Double
Extension method from PersistenceBar

Plain numbers for a bar over Double filtration values, so callers need not pattern-match on the endpoint types (open/closed makes no difference to the numbers): birth and death (Infinity for an essential class), persistence = death - birth, and toTriple = (dim, birth, death), the same shape diagramAt returns.

Plain numbers for a bar over Double filtration values, so callers need not pattern-match on the endpoint types (open/closed makes no difference to the numbers): birth and death (Infinity for an essential class), persistence = death - birth, and toTriple = (dim, birth, death), the same shape diagramAt returns.

Attributes

Source
Barcode.scala
def representative: AnnotationT

The representative recorded with this bar (every engine records one: a cycle, or a cocycle for the cohomology engines).

The representative recorded with this bar (every engine records one: a cycle, or a cocycle for the cohomology engines).

Attributes

Source
Barcode.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
Barcode.scala
def toTriple: (Int, Double, Double)
Extension method from PersistenceBar

Plain numbers for a bar over Double filtration values, so callers need not pattern-match on the endpoint types (open/closed makes no difference to the numbers): birth and death (Infinity for an essential class), persistence = death - birth, and toTriple = (dim, birth, death), the same shape diagramAt returns.

Plain numbers for a bar over Double filtration values, so callers need not pattern-match on the endpoint types (open/closed makes no difference to the numbers): birth and death (Infinity for an essential class), persistence = death - birth, and toTriple = (dim, birth, death), the same shape diagramAt returns.

Attributes

Source
Barcode.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