PersistenceResult
A finished persistence computation, for MATLAB and Java: every method takes and returns only int, double, arrays of those, or another PersistenceResult.
Bars are numbered 0 until size(), in no guaranteed order; an essential bar has death(i) == Infinity. The bars reported are those that pass the persistence threshold (see persistenceThreshold); toArrayUnfiltered has all of them. Each bar has a representative (cycleVertices, cycleCoefficients): a cycle, or a cocycle with option representativeType cocycles.
The plot... methods draw the result (see the plot package): each returns a figure to view() in the browser or save("name.svg") (or .html). save writes the whole result to a file that TDA4j.loadResult reads back, from MATLAB, Java, Scala or the command line.
Attributes
- Experimental
- true
- Source
- PersistenceResult.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
The number of bars of the dimension-dimension bars alive at each of resolution points of [tMin, tMax] (a bar [birth, death) is alive at t when birth <= t < death). See Vectorization.bettiCurve.
The number of bars of the dimension-dimension bars alive at each of resolution points of [tMin, tMax] (a bar [birth, death) is alive at t when birth <= t < death). See Vectorization.bettiCurve.
Attributes
- Source
- PersistenceResult.scala
Attributes
- Source
- PersistenceResult.scala
The cell that opens bar i, in the format of one row of cycleVertices: the cell whose entry creates the class, of the bar's dimension and with the bar's birth as its filtration value. Empty if the engine behind the result recorded no cells (and for a result loaded from a file that has none).
The cell that opens bar i, in the format of one row of cycleVertices: the cell whose entry creates the class, of the bar's dimension and with the bar's birth as its filtration value. Empty if the engine behind the result recorded no cells (and for a result loaded from a file that has none).
Attributes
- Source
- PersistenceResult.scala
The bottleneck distance between the dimension-dimension bars of this result and other (L∞ ground norm; see BarcodeDistance). Infinity when the numbers of essential bars differ: then no finite matching exists.
The bottleneck distance between the dimension-dimension bars of this result and other (L∞ ground norm; see BarcodeDistance). Infinity when the numbers of essential bars differ: then no finite matching exists.
Attributes
- Source
- PersistenceResult.scala
bottleneckDistance under the ground norm groundNorm (Infinity for L∞).
bottleneckDistance under the ground norm groundNorm (Infinity for L∞).
Attributes
- Source
- PersistenceResult.scala
As wassersteinMatching, for the bottleneck distance.
The column numbers of the nonzero entries, parallel to boundaryRows.
The column numbers of the nonzero entries, parallel to boundaryRows.
Attributes
- Source
- PersistenceResult.scala
The row numbers of the boundary matrix's nonzero entries (0-based), parallel to boundaryCols and boundaryValues: cell cols(k) has cell rows(k) in its boundary with coefficient values(k). In MATLAB: sparse(rows + 1, cols + 1, values, n, n).
The row numbers of the boundary matrix's nonzero entries (0-based), parallel to boundaryCols and boundaryValues: cell cols(k) has cell rows(k) in its boundary with coefficient values(k). In MATLAB: sparse(rows + 1, cols + 1, values, n, n).
Attributes
- Source
- PersistenceResult.scala
The nonzero entries, parallel to boundaryRows, as in cycleCoefficients.
The nonzero entries, parallel to boundaryRows, as in cycleCoefficients.
Attributes
- Source
- PersistenceResult.scala
The dimension of cell j (a column of the boundary matrix, not a bar).
The dimension of cell j (a column of the boundary matrix, not a bar).
Attributes
- Source
- PersistenceResult.scala
The filtration value of cell j: keep the cells with value at most r for the complex at scale r.
The filtration value of cell j: keep the cells with value at most r for the complex at scale r.
Attributes
- Source
- PersistenceResult.scala
Cell j, in the format of cycleVertices.
The coefficients of bar i's representative, parallel to cycleVertices(i): over Z/p an integer representative of the residue, over the reals the value.
The coefficients of bar i's representative, parallel to cycleVertices(i): over Z/p an integer representative of the residue, over the reals the value.
Attributes
- Source
- PersistenceResult.scala
The cells of bar i's representative, one row each:
The cells of bar i's representative, one row each:
- for a simplicial complex, the simplex's sorted vertices (0-based point numbers; for the witness complex, point numbers, not landmark numbers);
- for an image, the cube's doubled coordinates: along each axis
2afor a vertex coordinatea,2a + 1for the unit interval[a, a + 1](a pixel(i, j)is(2i + 1, 2j + 1)).
Every engine records a representative for every bar; an UnsupportedOperationException here is an engine bug.
Attributes
- Source
- PersistenceResult.scala
Attributes
- Source
- PersistenceResult.scala
The cell that closes bar i, in the format of one row of cycleVertices: the cell whose entry kills the class, one dimension up from the bar's and with the bar's death as its filtration value. Empty for an essential bar, and where birthCell is empty.
The cell that closes bar i, in the format of one row of cycleVertices: the cell whose entry kills the class, one dimension up from the bar's and with the bar's death as its filtration value. Empty for an essential bar, and where birthCell is empty.
Attributes
- Source
- PersistenceResult.scala
Attributes
- Source
- PersistenceResult.scala
How many computed bars the threshold hid: there are size() + hiddenCount() in all.
How many computed bars the threshold hid: there are size() + hiddenCount() in all.
Attributes
- Source
- PersistenceResult.scala
The first numLevels persistence landscapes of the dimension-dimension bars, sampled at resolution points of [tMin, tMax]: levels(k)(j) is level k (0 the outermost) at point j. See Vectorization.landscape.
The first numLevels persistence landscapes of the dimension-dimension bars, sampled at resolution points of [tMin, tMax]: levels(k)(j) is level k (0 the outermost) at point j. See Vectorization.landscape.
Attributes
- Source
- PersistenceResult.scala
The reported bar of dimension dimension with the largest persistence (an essential bar first; the lowest index among equals): the one to pass to plotRepresentative for the most prominent feature.
The reported bar of dimension dimension with the largest persistence (an essential bar first; the lowest index among equals): the one to pass to plotRepresentative for the most prominent feature.
Attributes
- Source
- PersistenceResult.scala
The number of cells of the complex: the size of the (square) boundary matrix.
The number of cells of the complex: the size of the (square) boundary matrix.
Attributes
- Source
- PersistenceResult.scala
The persistence entropy of the dimension-dimension bars; essential bars are left out. With normalized, divided by the logarithm of the number of bars, so that it lies in [0, 1]. See Vectorization.persistenceEntropy.
The persistence entropy of the dimension-dimension bars; essential bars are left out. With normalized, divided by the logarithm of the number of bars, so that it lies in [0, 1]. See Vectorization.persistenceEntropy.
Attributes
- Source
- PersistenceResult.scala
The persistence image of the dimension-dimension bars over [birthMin, birthMax] x [persistenceMin, persistenceMax], birthResolution by persistenceResolution pixels, Gaussian width sigma, with the weight reaching 1 at the largest persistence. Essential bars are left out. See Vectorization.persistenceImage.
The persistence image of the dimension-dimension bars over [birthMin, birthMax] x [persistenceMin, persistenceMax], birthResolution by persistenceResolution pixels, Gaussian width sigma, with the weight reaching 1 at the largest persistence. Essential bars are left out. See Vectorization.persistenceImage.
Attributes
- Source
- PersistenceResult.scala
persistenceImage with the weight reaching 1 at persistence weightCap.
persistenceImage with the weight reaching 1 at persistence weightCap.
Attributes
- Source
- PersistenceResult.scala
The persistence a reported bar had to exceed (0: no threshold). Essential bars are always reported.
The persistence a reported bar had to exceed (0: no threshold). Essential bars are always reported.
Attributes
- Source
- PersistenceResult.scala
The reported bars as a barcode: one bar per class, grouped by dimension; hover a bar for its numbers.
The reported bars as a barcode: one bar per class, grouped by dimension; hover a bar for its numbers.
Attributes
- Source
- PersistenceResult.scala
The barcode of the longest most persistent reported bars of each dimension.
The barcode of the longest most persistent reported bars of each dimension.
Attributes
- Source
- PersistenceResult.scala
The barcode with the bars of each dimension sorted by order: birth (the default), persistence (the longest first) or death.
The barcode with the bars of each dimension sorted by order: birth (the default), persistence (the longest first) or death.
Attributes
- Source
- PersistenceResult.scala
The complex at scale at over the points, whichever complex the result was computed from (a witness complex over its landmarks): with the balls whose overlaps a vr, cech or alpha complex records. It is the complex the computation built, with the alpha backend, the landmarks and the DTM and sparse parameters it used; past the result's maxFiltrationValue it stops there and says so.
The complex at scale at over the points, whichever complex the result was computed from (a witness complex over its landmarks): with the balls whose overlaps a vr, cech or alpha complex records. It is the complex the computation built, with the alpha backend, the landmarks and the DTM and sparse parameters it used; past the result's maxFiltrationValue it stops there and says so.
Attributes
- Source
- PersistenceResult.scala
The complex at scale at in 3-D, whichever complex the result was computed from.
The complex at scale at in 3-D, whichever complex the result was computed from.
Attributes
- Source
- PersistenceResult.scala
The reported bars as a persistence diagram: a point (birth, death) per bar, essential bars on the ∞ line.
The reported bars as a persistence diagram: a point (birth, death) per bar, essential bars on the ∞ line.
Attributes
- Source
- PersistenceResult.scala
The result's bars as linked views: the persistence diagram, the barcode and the points, with the points' cycles. Pointing at a class in the diagram or the barcode lights it up in the other and draws its representative cycle on the points; a click keeps it chosen (shift-click adds more, a click on the background lets them go), dragging a rectangle chooses the classes it touches and lists them under the pictures, and every picture zooms (buttons, or Ctrl and the mouse wheel) and pans. save("page.html") for the self-contained page; chain withTitle(text) and withPalette(name) on the result. Needs the points, and bars with representatives (the default of every engine but fast-cubical).
The result's bars as linked views: the persistence diagram, the barcode and the points, with the points' cycles. Pointing at a class in the diagram or the barcode lights it up in the other and draws its representative cycle on the points; a click keeps it chosen (shift-click adds more, a click on the background lets them go), dragging a rectangle chooses the classes it touches and lists them under the pictures, and every picture zooms (buttons, or Ctrl and the mouse wheel) and pans. save("page.html") for the self-contained page; chain withTitle(text) and withPalette(name) on the result. Needs the points, and bars with representatives (the default of every engine but fast-cubical).
Attributes
- Source
- PersistenceResult.scala
The result's complex as a page with a slider for the scale, from 0 to max in the complex's own units: the complex (the balls too, for a vr, cech or alpha complex) with its edges and triangles coming in as the slider passes their values, beside the persistence diagram, where each class is a vertical segment until the line of the slider passes its death and then a point. save("page.html") for the self-contained page, saveFrames(directory, count) for a still picture at each of count scales (a video, the slides of a talk). The page holds every edge and triangle up to max, so a large complex refuses (lower max). Chain withPlay(seconds), withTitle(text), withPalette(name) on the result.
The result's complex as a page with a slider for the scale, from 0 to max in the complex's own units: the complex (the balls too, for a vr, cech or alpha complex) with its edges and triangles coming in as the slider passes their values, beside the persistence diagram, where each class is a vertical segment until the line of the slider passes its death and then a point. save("page.html") for the self-contained page, saveFrames(directory, count) for a still picture at each of count scales (a video, the slides of a talk). The page holds every edge and triangle up to max, so a large complex refuses (lower max). Chain withPlay(seconds), withTitle(text), withPalette(name) on the result.
Attributes
- Source
- PersistenceResult.scala
plotFiltration with the complex in 3-D (the first three coordinates), to turn and zoom.
plotFiltration with the complex in 3-D (the first three coordinates), to turn and zoom.
Attributes
- Source
- PersistenceResult.scala
The input: the points (their first two coordinates) or the 2-D image.
The input: the points (their first two coordinates) or the 2-D image.
Attributes
- Source
- PersistenceResult.scala
The points in 3-D (their first three coordinates), to turn and zoom.
The points in 3-D (their first three coordinates), to turn and zoom.
Attributes
- Source
- PersistenceResult.scala
The first three persistence landscapes of the dimension-dimension bars: every bar, as landscape uses.
The first three persistence landscapes of the dimension-dimension bars: every bar, as landscape uses.
Attributes
- Source
- PersistenceResult.scala
plotFiltration with its views linked as plotExplore links them: pointing at a class of the diagram or the barcode, which it adds beside the diagram, lights it up in the other and draws its cycle on the complex.
plotFiltration with its views linked as plotExplore links them: pointing at a class of the diagram or the barcode, which it adds beside the diagram, lights it up in the other and draws its cycle on the complex.
Attributes
- Source
- PersistenceResult.scala
The persistence image of the dimension-dimension bars: every finite bar, as persistenceImage uses.
The persistence image of the dimension-dimension bars: every finite bar, as persistenceImage uses.
Attributes
- Source
- PersistenceResult.scala
Bar i's representative over the input: a cycle's cells in its dimension's color, a cocycle's colored by value (balanced integers for Z/p), or a cubical chain over its 2-D image; each cell's coefficient on hover.
Bar i's representative over the input: a cycle's cells in its dimension's color, a cocycle's colored by value (balanced integers for Z/p), or a cubical chain over its 2-D image; each cell's coefficient on hover.
Attributes
- Source
- PersistenceResult.scala
plotRepresentative at scale at, in the result's own complex (in its units): a cycle drawn over the complex at at; a cocycle restricted to its cells in the complex at at. at = Infinity draws a cocycle whole.
plotRepresentative at scale at, in the result's own complex (in its units): a cycle drawn over the complex at at; a cocycle restricted to its cells in the complex at at. at = Infinity draws a cocycle whole.
Attributes
- Source
- PersistenceResult.scala
Bar i's cycle in 3-D over the points: its edges and triangles in its dimension's color.
Bar i's cycle in 3-D over the points: its edges and triangles in its dimension's color.
Attributes
- Source
- PersistenceResult.scala
Writes the result to path for TDA4j.loadResult (from MATLAB, Java, Scala or tda4j --input-format result): every bar, the threshold and which bars it reported, the reported bars' representatives (computed now if they were not yet), what it was computed with, and the points or image it was computed from. Not the boundary matrix. The file is JSON, readable from any language; non-finite numbers are the strings "Infinity", "-Infinity" and "NaN" (Python's float(x) reads both kinds of entry). loadResult reads the whole file into memory. With representativeType cocycles and every bar reported, a dimension-0 cocycle is a whole connected component, so the file can grow with the square of the number of points. Returns the file's absolute path.
Writes the result to path for TDA4j.loadResult (from MATLAB, Java, Scala or tda4j --input-format result): every bar, the threshold and which bars it reported, the reported bars' representatives (computed now if they were not yet), what it was computed with, and the points or image it was computed from. Not the boundary matrix. The file is JSON, readable from any language; non-finite numbers are the strings "Infinity", "-Infinity" and "NaN" (Python's float(x) reads both kinds of entry). loadResult reads the whole file into memory. With representativeType cocycles and every bar reported, a dimension-0 cocycle is a whole connected component, so the file can grow with the square of the number of points. Returns the file's absolute path.
Attributes
- Source
- PersistenceResult.scala
The persistence silhouette of the dimension-dimension bars, weighted by persistence to the power power, sampled at resolution points of [tMin, tMax]. Essential bars are left out. See Vectorization.silhouette.
The persistence silhouette of the dimension-dimension bars, weighted by persistence to the power power, sampled at resolution points of [tMin, tMax]. Essential bars are left out. See Vectorization.silhouette.
Attributes
- Source
- PersistenceResult.scala
Attributes
- Source
- PersistenceResult.scala
The sliced Wasserstein distance between the dimension-dimension bars of this result and other, averaged over directions directions. Essential bars are left out. See BarcodeDistance.slicedWassersteinDistance.
The sliced Wasserstein distance between the dimension-dimension bars of this result and other, averaged over directions directions. Essential bars are left out. See BarcodeDistance.slicedWassersteinDistance.
Attributes
- Source
- PersistenceResult.scala
The reported bars as an N-by-3 matrix: dimension, birth, death (Infinity for an essential bar).
The reported bars as an N-by-3 matrix: dimension, birth, death (Infinity for an essential bar).
Attributes
- Source
- PersistenceResult.scala
Every computed bar, threshold or not, as an N-by-3 matrix like toArray.
Every computed bar, threshold or not, as an N-by-3 matrix like toArray.
Attributes
- Source
- PersistenceResult.scala
The Wasserstein distance of order 1 between the dimension-dimension bars of this result and other (L∞ ground norm; see BarcodeDistance).
The Wasserstein distance of order 1 between the dimension-dimension bars of this result and other (L∞ ground norm; see BarcodeDistance).
Attributes
- Source
- PersistenceResult.scala
wassersteinDistance of order order (finite, at least 1).
wassersteinDistance of order order under the ground norm groundNorm (Infinity for L∞).
wassersteinDistance of order order under the ground norm groundNorm (Infinity for L∞).
Attributes
- Source
- PersistenceResult.scala
An optimal matching of the dimension-dimension bars of this result with those of other for the Wasserstein distance of order order: one row [i j] per matched pair of bars, [i -1] for a bar of this result matched to the diagonal and [-1 j] for one of other. The bars are numbered from 0 in the order of toArrayUnfiltered restricted to that dimension. No rows if the numbers of essential bars differ (the distance is Inf then). See BarcodeDistance.wassersteinMatching.
An optimal matching of the dimension-dimension bars of this result with those of other for the Wasserstein distance of order order: one row [i j] per matched pair of bars, [i -1] for a bar of this result matched to the diagonal and [-1 j] for one of other. The bars are numbered from 0 in the order of toArrayUnfiltered restricted to that dimension. No rows if the numbers of essential bars differ (the distance is Inf then). See BarcodeDistance.wassersteinMatching.
Attributes
- Source
- PersistenceResult.scala