Barcode
Stateless: every method here is a pure function of its arguments, so this is an object, not a class you instantiate per call (as it was before, Barcode[F, A]().method(...), with no state ever carried between the construction and the one call).
Attributes
- Experimental
- true
- Source
- Barcode.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Barcode.type
Members list
Value members
Concrete methods
The bars of the cokernel of matrix (image says what it is), each carrying the degree and annotation of its target bar.
The bars of the cokernel of matrix (image says what it is), each carrying the degree and annotation of its target bar.
Attributes
- Source
- Barcode.scala
The convolution of two barcodes, the tensor product over the filtration parameter (the Day convolution): the module whose value at t is generated by the products of an element of M at s and of N at u with s + u <= t. The bars [a, b) and [c, d) give [a + c, min(b + c, a + d)), the degrees add. It is the homology of the product of two filtered complexes with ProductComplex.Combine.Sum up to the terms tor adds (kunneth), and the left adjoint of hom.
The convolution of two barcodes, the tensor product over the filtration parameter (the Day convolution): the module whose value at t is generated by the products of an element of M at s and of N at u with s + u <= t. The bars [a, b) and [c, d) give [a + c, min(b + c, a + d)), the degrees add. It is the homology of the product of two filtered complexes with ProductComplex.Combine.Sum up to the terms tor adds (kunneth), and the left adjoint of hom.
Attributes
- Source
- Barcode.scala
The dual of a barcode, the module of linear functionals t ↦ (M_t)* with the arrows reversed, indexed by -t to run forward again: the interval is reflected, so the bar [b, d) becomes (-d, -b] (open below, closed above; from -Infinity for a bar that never dies), and the dual of the dual is the barcode you started from. The degrees are kept: the dual of the homology in degree k is the cohomology in degree k, indexed by -t, so for a finite complex over a field the two have the same pairs of values.
The dual of a barcode, the module of linear functionals t ↦ (M_t)* with the arrows reversed, indexed by -t to run forward again: the interval is reflected, so the bar [b, d) becomes (-d, -b] (open below, closed above; from -Infinity for a bar that never dies), and the dual of the dual is the barcode you started from. The degrees are kept: the dual of the homology in degree k is the cohomology in degree k, indexed by -t, so for a finite complex over a field the two have the same pairs of values.
Attributes
- Source
- Barcode.scala
The internal Hom of two barcodes, the module [M, N]_t = Hom(M, N shifted by t) of the maps from M to N shifted back by t: the bars [a, b) of M and [c, d) of N give [max(c - a, d - b), d - a) when that is not empty (none, for instance, from a bar that dies to one that never does). The degree of a bar is q - p: the maps of degree q - p from a degree p bar to a degree q bar. This is the right adjoint of convolve: Hom(M ⊛ N, P) ≅ Hom(M, [N, P]); the module of maps that exist, not the derived one (no Ext).
The internal Hom of two barcodes, the module [M, N]_t = Hom(M, N shifted by t) of the maps from M to N shifted back by t: the bars [a, b) of M and [c, d) of N give [max(c - a, d - b), d - a) when that is not empty (none, for instance, from a bar that dies to one that never does). The degree of a bar is q - p: the maps of degree q - p from a degree p bar to a degree q bar. This is the right adjoint of convolve: Hom(M ⊛ N, P) ≅ Hom(M, [N, P]); the module of maps that exist, not the derived one (no Ext).
Attributes
- Source
- Barcode.scala
The dimension of the space of maps of persistence modules from first to second (natural transformations degree by degree, with no shift): the number of pairs of a bar [b, d) of the first and a bar [b', d') of the second with b' <= b < d' <= d, each contributing one.
The dimension of the space of maps of persistence modules from first to second (natural transformations degree by degree, with no shift): the number of pairs of a bar [b, d) of the first and a bar [b', d') of the second with b' <= b < d' <= d, each contributing one.
Attributes
- Source
- Barcode.scala
The bars of the image of matrix, a map of persistence modules from source to target (isMap), as a barcode: each carries the degree and the annotation of the source bar it grows from. The matrix is over the real numbers, an entry counting as zero within 1e-9; MapAlgebra does the same over any field.
The bars of the image of matrix, a map of persistence modules from source to target (isMap), as a barcode: each carries the degree and the annotation of the source bar it grows from. The matrix is over the real numbers, an entry counting as zero within 1e-9; MapAlgebra does the same over any field.
Attributes
- Source
- Barcode.scala
Whether matrix is a map of persistence modules from the bars source to the bars target: a row for each target bar, a column for each source bar, and a nonzero entry only where the target bar [b', d') is born no later than the source bar [b, d), is still alive when it is born, and dies no later than the source does: b' <= b < d' <= d.
Whether matrix is a map of persistence modules from the bars source to the bars target: a row for each target bar, a column for each source bar, and a nonzero entry only where the target bar [b', d') is born no later than the source bar [b, d), is still alive when it is born, and dies no later than the source does: b' <= b < d' <= d.
Attributes
- Source
- Barcode.scala
The bars of the kernel of matrix (image says what it is), each carrying the degree and annotation of its source bar.
The bars of the kernel of matrix (image says what it is), each carrying the degree and annotation of its source bar.
Attributes
- Source
- Barcode.scala
The barcode of the homology of the product of two filtered complexes, from the barcodes of the factors (all of their degrees; the result is right in the degrees below the highest degree both were computed to). A cell (σ, τ) of the product enters at Max or Sum of the values of σ and τ (ProductComplex.Combine):
The barcode of the homology of the product of two filtered complexes, from the barcodes of the factors (all of their degrees; the result is right in the degrees below the highest degree both were computed to). A cell (σ, τ) of the product enters at Max or Sum of the values of σ and τ (ProductComplex.Combine):
Max:H_n(X × Y) = ⊕_{p + q = n} H_p(X) ⊗ H_q(Y), naturally in the filtration value, so the barcode is tensor of the factors;Sum: the Künneth sequence over the filtration parameter,⊕_{p + q = n} H_p(X) ⊛ H_q(Y)(the convolve) and⊕_{p + q = n - 1} Tor(H_p(X), H_q(Y))(the tor).
ProductComplex builds the product itself, which the tests compute the same bars from.
Attributes
- Source
- Barcode.scala
The pairs (row, column) of the lowest nonzero entry of each nonzero column.
The pairs (row, column) of the lowest nonzero entry of each nonzero column.
Attributes
- Source
- Barcode.scala
matrix with every column reduced by the columns to its left, by their lowest nonzero entries (the standard persistence reduction over the reals): afterwards no two nonzero columns have the same lowest nonzero row. The argument is not changed.
matrix with every column reduced by the columns to its left, by their lowest nonzero entries (the standard persistence reduction over the reals): afterwards no two nonzero columns have the same lowest nonzero row. The argument is not changed.
Attributes
- Source
- Barcode.scala
The pointwise tensor product of two barcodes, the module t ↦ M_t ⊗ N_t: the bars [a, b) and [c, d) give the bar [max(a, c), min(b, d)) when that is not empty, and the degrees add (p and q give p + q). It is the homology of the product of two filtered complexes with ProductComplex.Combine.Max (a persistent Künneth theorem, kunneth). Only the numbers of the endpoints count; the bars come back with no annotation, ordered by degree, birth and death.
The pointwise tensor product of two barcodes, the module t ↦ M_t ⊗ N_t: the bars [a, b) and [c, d) give the bar [max(a, c), min(b, d)) when that is not empty, and the degrees add (p and q give p + q). It is the homology of the product of two filtered complexes with ProductComplex.Combine.Max (a persistent Künneth theorem, kunneth). Only the numbers of the endpoints count; the bars come back with no annotation, ordered by degree, birth and death.
Attributes
- Source
- Barcode.scala
The first Tor of two barcodes over the filtration parameter: for two finite bars [a, b) and [c, d), the bar [max(b + c, a + d), b + d), in degree p + q + 1. A bar that never dies is free and contributes nothing.
The first Tor of two barcodes over the filtration parameter: for two finite bars [a, b) and [c, d), the bar [max(b + c, a + d), b + d), in degree p + q + 1. A bar that never dies is free and contributes nothing.
Attributes
- Source
- Barcode.scala