TDA4j

org.appliedtopology.tda4j.matlab.TDA4j
object TDA4j

TDA4j for MATLAB (through its built-in Java support) and plain Java: every method takes and returns only int, double, String, arrays of those, and result objects (PersistenceResult, LandmarkSelectionResult, CircularCoordinatesResult, ToroidalCoordinatesResult).

Options are a flat, alternating name/value String[] ({"engine", "ripser", "maxDimension", "3"}), so a new option never changes a signature; every compute... method also has an overload without options. The options and their defaults are listed in the user guide's "Calling from MATLAB or Java" page: complex, engine, maxDimension, maxFiltrationValue, field, prime, epsilon, minPersistence, minPersistenceFraction, includeZeroLength, alphaBackend, requireValidTriangulation, dtmK, dtmQ, dtmP, sparseEpsilon, numLandmarks, witnessVariant, landmarkSelector, landmarkSeed, nu, edgeCollapse, edgeTies, blockOrder, sublevel, nanMask, dual, representativesOn. An unknown option, an unknown value, or a combination that does not apply (an engine for a complex it cannot read) throws IllegalArgumentException naming it, before anything is computed.

By default a result reports the essential bars and the bars longer than 1% of the input's scale (its minimum enclosing radius, or the value range of an image or relation); zero-length bars are left out unless includeZeroLength is true. See PersistenceResult.

Attributes

Experimental
true
Source
TDA4j.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
TDA4j.type

Members list

Value members

Concrete methods

def bootstrapBand(points: Array[Array[Double]], options: Array[String]): BootstrapBandResult

The resampling confidence band of the degree-dimension bars of a point cloud: see BootstrapBandResult and BootstrapBand. Options dimension (default 1), rounds (default 100), alpha (default 0.05), seed (default 0), subsampleSize (resample that many points without replacement; by default the points are drawn with replacement), prime, maxFiltrationValue and threads, and no others.

The resampling confidence band of the degree-dimension bars of a point cloud: see BootstrapBandResult and BootstrapBand. Options dimension (default 1), rounds (default 100), alpha (default 0.05), seed (default 0), subsampleSize (resample that many points without replacement; by default the points are drawn with replacement), prime, maxFiltrationValue and threads, and no others.

Attributes

Source
TDA4j.scala
def bootstrapBand(points: Array[Array[Double]]): BootstrapBandResult

Attributes

Source
TDA4j.scala
def circularCoordinates(points: Array[Array[Double]], r: Double): CircularCoordinatesResult

Attributes

Source
TDA4j.scala
def circularCoordinates(points: Array[Array[Double]], r: Double, cocycleIndex: Int, prime: Int): CircularCoordinatesResult

Circular coordinates for loop cocycleIndex of h1Bars at scale r, over the field with prime elements (an odd prime; default 47): see CircularCoordinates.compute. Throws NoIntegerCocycleException if the class has no integer lift at prime (retry with a larger prime), IllegalArgumentException for an invalid argument.

Circular coordinates for loop cocycleIndex of h1Bars at scale r, over the field with prime elements (an odd prime; default 47): see CircularCoordinates.compute. Throws NoIntegerCocycleException if the class has no integer lift at prime (retry with a larger prime), IllegalArgumentException for an invalid argument.

Attributes

Source
TDA4j.scala
def circularCoordinates(points: Array[Array[Double]], r: Double, cocycleIndex: Int, prime: Int, numLandmarks: Int): CircularCoordinatesResult

circularCoordinates with numLandmarks (0: every point, the default): Perea's sparse coordinates over that many maxmin landmarks, for many points. Loops and scales are those of h1Bars(points, numLandmarks); a point no landmark ball of the loop holds at r gets NaN.

circularCoordinates with numLandmarks (0: every point, the default): Perea's sparse coordinates over that many maxmin landmarks, for many points. Loops and scales are those of h1Bars(points, numLandmarks); a point no landmark ball of the loop holds at r gets NaN.

Attributes

Source
TDA4j.scala
def circularCoordinates(points: Array[Array[Double]], r: Double, cocycleIndex: Int, prime: Int, numLandmarks: Int, complex: String): CircularCoordinatesResult

circularCoordinates of the loop cocycleIndex of h1Bars of complex ("vr", "cech" or "alpha", with the same prime): the coordinates of the complex that the loop lives in, CircularCoordinates(diagram, ...). numLandmarks must be 0 for "cech" and "alpha".

circularCoordinates of the loop cocycleIndex of h1Bars of complex ("vr", "cech" or "alpha", with the same prime): the coordinates of the complex that the loop lives in, CircularCoordinates(diagram, ...). numLandmarks must be 0 for "cech" and "alpha".

Attributes

Source
TDA4j.scala
def clearPlotDefaults(): Unit

The plots a result draws are as their constructors make them again.

The plots a result draws are as their constructors make them again.

Attributes

Source
TDA4j.scala
def computeFromCubicalImage(shape: Array[Int], flatValues: Array[Double]): PersistenceResult

Attributes

Source
TDA4j.scala
def computeFromCubicalImage(shape: Array[Int], flatValues: Array[Double], options: Array[String]): PersistenceResult

Persistence of an image or voxel grid of any dimension: the values in row-major order (last axis fastest) and the size along each axis. Options: engine (fast-cubical, the default for two dimensions and up; cohomology, the default for one dimension and for representativeType cocycles; naive, chunks), maxDimension (default: the grid's dimension), sublevel (false for superlevel sets, whose filtration values are negated intensities), representativeType, field, prime, epsilon, and the bar options. A pixel of value NaN is masked (missing data): it is not in the complex, whatever sublevel is. Inf and -Inf are ordinary values: with sublevel true, Inf enters after every finite value and -Inf before them; with sublevel false, the reverse. Option nanMask false turns masks off: a NaN pixel is then an error, naming the pixel.

Persistence of an image or voxel grid of any dimension: the values in row-major order (last axis fastest) and the size along each axis. Options: engine (fast-cubical, the default for two dimensions and up; cohomology, the default for one dimension and for representativeType cocycles; naive, chunks), maxDimension (default: the grid's dimension), sublevel (false for superlevel sets, whose filtration values are negated intensities), representativeType, field, prime, epsilon, and the bar options. A pixel of value NaN is masked (missing data): it is not in the complex, whatever sublevel is. Inf and -Inf are ordinary values: with sublevel true, Inf enters after every finite value and -Inf before them; with sublevel false, the reverse. Option nanMask false turns masks off: a NaN pixel is then an error, naming the pixel.

Attributes

Source
TDA4j.scala
def computeFromDistanceMatrix(distances: Array[Array[Double]]): PersistenceResult

Attributes

Source
TDA4j.scala
def computeFromDistanceMatrix(distances: Array[Array[Double]], options: Array[String]): PersistenceResult

Persistence from a square, symmetric distance matrix (zero diagonal): every complex that needs only distances (vr, witness, dtm-rips, sparse-rips), not alpha, cech or dtm-alpha.

Persistence from a square, symmetric distance matrix (zero diagonal): every complex that needs only distances (vr, witness, dtm-rips, sparse-rips), not alpha, cech or dtm-alpha.

Attributes

Source
TDA4j.scala
def computeFromDistanceMatrixAndLandmarks(distances: Array[Array[Double]], landmarks: Array[Int], options: Array[String]): PersistenceResult

Attributes

Source
TDA4j.scala
def computeFromDistanceMatrixAndLandmarks(distances: Array[Array[Double]], landmarks: Array[Int]): PersistenceResult

As computeFromPointsAndLandmarks, from a distance matrix.

As computeFromPointsAndLandmarks, from a distance matrix.

Attributes

Source
TDA4j.scala
def computeFromImage(pixels: Array[Array[Double]]): PersistenceResult

Attributes

Source
TDA4j.scala
def computeFromImage(pixels: Array[Array[Double]], options: Array[String]): PersistenceResult

computeFromCubicalImage for a 2-D image given as a matrix, pixels(row)(column).

computeFromCubicalImage for a 2-D image given as a matrix, pixels(row)(column).

Attributes

Source
TDA4j.scala
def computeFromPoints(points: Array[Array[Double]]): PersistenceResult

Attributes

Source
TDA4j.scala
def computeFromPoints(points: Array[Array[Double]], options: Array[String]): PersistenceResult

Persistence of a point cloud, one row per point, with Euclidean distances: any complex.

Persistence of a point cloud, one row per point, with Euclidean distances: any complex.

Attributes

Source
TDA4j.scala
def computeFromPointsAndLandmarks(points: Array[Array[Double]], landmarks: Array[Int], options: Array[String]): PersistenceResult

Attributes

Source
TDA4j.scala
def computeFromPointsAndLandmarks(points: Array[Array[Double]], landmarks: Array[Int]): PersistenceResult

Step 2 of the two-step witness complex: its persistence for the given landmarks (0-based row numbers of points, non-empty, distinct; a number equal to points.length is reported as a likely 1-based index). Options: witnessVariant, nu, engine, maxDimension, maxFiltrationValue, field, prime, epsilon, the bar options, and complex only as "witness".

Step 2 of the two-step witness complex: its persistence for the given landmarks (0-based row numbers of points, non-empty, distinct; a number equal to points.length is reported as a likely 1-based index). Options: witnessVariant, nu, engine, maxDimension, maxFiltrationValue, field, prime, epsilon, the bar options, and complex only as "witness".

Attributes

Source
TDA4j.scala
def computeFromRelation(relation: Array[Array[Double]]): PersistenceResult

Attributes

Source
TDA4j.scala
def computeFromRelation(relation: Array[Array[Double]], options: Array[String]): PersistenceResult

Persistence of the Dowker complex of a relation: relation(x)(w) is the strength of the tie between row x and column w (smaller is stronger, Infinity for never; non-negative). The matrix need not be square or symmetric. Options: engine (naive, the default, or cohomology: the complex is not a flag complex), maxDimension (default 2), maxFiltrationValue (default Infinity), dual (true for the complex on the columns, which has the same diagram), representativesOn (rows or columns: the side the representatives are on, by default the side the complex is built on; the other side's are Dowker's image of them, cycles or cocycles), field, prime, epsilon, and the bar options. The bars' birth and death cells and the boundary matrix are always those of the side the complex is built on.

Persistence of the Dowker complex of a relation: relation(x)(w) is the strength of the tie between row x and column w (smaller is stronger, Infinity for never; non-negative). The matrix need not be square or symmetric. Options: engine (naive, the default, or cohomology: the complex is not a flag complex), maxDimension (default 2), maxFiltrationValue (default Infinity), dual (true for the complex on the columns, which has the same diagram), representativesOn (rows or columns: the side the representatives are on, by default the side the complex is built on; the other side's are Dowker's image of them, cycles or cocycles), field, prime, epsilon, and the bar options. The bars' birth and death cells and the boundary matrix are always those of the side the complex is built on.

Attributes

Source
TDA4j.scala
def computeInclusionFromDistanceMatrix(distances: Array[Array[Double]], subsample: Array[Int], options: Array[String]): PersistenceMapResult

computeInclusionFromPoints for a full matrix of distances.

computeInclusionFromPoints for a full matrix of distances.

Attributes

Source
TDA4j.scala
def computeInclusionFromPoints(points: Array[Array[Double]], subsample: Array[Int], options: Array[String]): PersistenceMapResult

The map induced by the inclusion of the Vietoris-Rips complex of a subsample, the points of points numbered by subsample (0-based), into that of all of them: what survives from the subsample in the whole sample, and what only the whole sample sees. Options as in computeMapFromPoints.

The map induced by the inclusion of the Vietoris-Rips complex of a subsample, the points of points numbered by subsample (0-based), into that of all of them: what survives from the subsample in the whole sample, and what only the whole sample sees. Options as in computeMapFromPoints.

Attributes

Source
TDA4j.scala
def computeInclusionFromPoints(points: Array[Array[Double]], subsample: Array[Int]): PersistenceMapResult

Attributes

Source
TDA4j.scala
def computeMapFromDistanceMatrices(sourceDistances: Array[Array[Double]], targetDistances: Array[Array[Double]], vertexMap: Array[Int], options: Array[String]): PersistenceMapResult

computeMapFromPoints for two finite metric spaces given as full matrices of distances.

computeMapFromPoints for two finite metric spaces given as full matrices of distances.

Attributes

Source
TDA4j.scala
def computeMapFromPoints(sourcePoints: Array[Array[Double]], targetPoints: Array[Array[Double]], vertexMap: Array[Int], options: Array[String]): PersistenceMapResult

The map on persistent homology induced by the simplicial map of Vietoris-Rips complexes that sends point i of sourcePoints to point vertexMap(i) of targetPoints, with its image, kernel and cokernel as barcodes: see PersistenceMapResult. The map has to preserve the filtration -- never increase a distance, as an inclusion of a subsample does not -- or the computation says so. Options: engine (ripser, the default, or cohomology), maxDimension (default 2), maxFiltrationValue (shared by both complexes; by default the target's minimum enclosing radius), prime (default 17) and threads.

The map on persistent homology induced by the simplicial map of Vietoris-Rips complexes that sends point i of sourcePoints to point vertexMap(i) of targetPoints, with its image, kernel and cokernel as barcodes: see PersistenceMapResult. The map has to preserve the filtration -- never increase a distance, as an inclusion of a subsample does not -- or the computation says so. Options: engine (ripser, the default, or cohomology), maxDimension (default 2), maxFiltrationValue (shared by both complexes; by default the target's minimum enclosing radius), prime (default 17) and threads.

Attributes

Source
TDA4j.scala
def computeMapFromPoints(sourcePoints: Array[Array[Double]], targetPoints: Array[Array[Double]], vertexMap: Array[Int]): PersistenceMapResult

Attributes

Source
TDA4j.scala
def computeRelativeFromDistanceMatrix(distances: Array[Array[Double]], subcomplex: Array[Int], options: Array[String]): PersistenceResult

computeRelativeFromPoints for a square, symmetric distance matrix.

computeRelativeFromPoints for a square, symmetric distance matrix.

Attributes

Source
TDA4j.scala
def computeRelativeFromDistanceMatrix(distances: Array[Array[Double]], subcomplex: Array[Int]): PersistenceResult

Attributes

Source
TDA4j.scala
def computeRelativeFromPoints(points: Array[Array[Double]], subcomplex: Array[Int], options: Array[String]): PersistenceResult

Relative persistent homology of the Vietoris-Rips complex of a point cloud modulo the subcomplex on some of its points: the bars of H(X_t, A_t), where X is the complex and A the simplices all of whose vertices are among subcomplex (0-based row numbers). Two cases to know: modulo the whole cloud there is nothing, and modulo one point of a connected cloud, whose points all enter together, the result is the reduced homology (the one bar of the whole complex in degree 0 is gone). Options: engine (cohomology, the default, naive or chunks), maxDimension (default 2), maxFiltrationValue, field, prime, epsilon, representativeType, the bar options and threads, and no others. The representatives and the cells of the bars are cells of X outside A.

Relative persistent homology of the Vietoris-Rips complex of a point cloud modulo the subcomplex on some of its points: the bars of H(X_t, A_t), where X is the complex and A the simplices all of whose vertices are among subcomplex (0-based row numbers). Two cases to know: modulo the whole cloud there is nothing, and modulo one point of a connected cloud, whose points all enter together, the result is the reduced homology (the one bar of the whole complex in degree 0 is gone). Options: engine (cohomology, the default, naive or chunks), maxDimension (default 2), maxFiltrationValue, field, prime, epsilon, representativeType, the bar options and threads, and no others. The representatives and the cells of the bars are cells of X outside A.

Attributes

Source
TDA4j.scala
def computeRelativeFromPoints(points: Array[Array[Double]], subcomplex: Array[Int]): PersistenceResult

Attributes

Source
TDA4j.scala
def coveringRadiusFromDistanceMatrix(distances: Array[Array[Double]], landmarks: Array[Int]): Double

As coveringRadiusFromPoints, from a distance matrix.

As coveringRadiusFromPoints, from a distance matrix.

Attributes

Source
TDA4j.scala
def coveringRadiusFromPoints(points: Array[Array[Double]], landmarks: Array[Int]): Double

The covering radius R = max over x of min over landmarks l of d(x, l) of any landmark set.

The covering radius R = max over x of min over landmarks l of d(x, l) of any landmark set.

Attributes

Source
TDA4j.scala
def delayByAutocorrelation(series: Array[Double], maxLag: Int): Int

The first lag in 1 to maxLag at which the autocorrelation of the series is zero or negative: a first guess for the delay of takensEmbedding (a quarter of the period for a sinusoid).

The first lag in 1 to maxLag at which the autocorrelation of the series is zero or negative: a first guess for the delay of takensEmbedding (a quarter of the period for a sinusoid).

Attributes

Source
TDA4j.scala
def dualBars(bars: Array[Array[Double]]): Array[Array[Double]]

The dual of a barcode: the row (dimension, birth, death) of [b, d) is (dimension, -d, -b), the interval (-d, -b] of the persistence module t -> (M_{-t})*. -Inf as the first end for a bar that never dies. See Barcode.dual.

The dual of a barcode: the row (dimension, birth, death) of [b, d) is (dimension, -d, -b), the interval (-d, -b] of the persistence module t -> (M_{-t})*. -Inf as the first end for a bar that never dies. See Barcode.dual.

Attributes

Source
TDA4j.scala
def eulerCurveFromDistanceMatrix(distances: Array[Array[Double]], options: Array[String]): EulerCurveResult

As eulerCurveFromPoints, from a distance matrix.

As eulerCurveFromPoints, from a distance matrix.

Attributes

Source
TDA4j.scala
def eulerCurveFromDistanceMatrix(distances: Array[Array[Double]]): EulerCurveResult

Attributes

Source
TDA4j.scala
def eulerCurveFromPoints(points: Array[Array[Double]], options: Array[String]): EulerCurveResult

The Euler characteristic curve of the Vietoris-Rips complex of a point cloud, one row per point, with Euclidean distances: see EulerCurveResult. Options maxSimplexDimension (the largest simplices counted, default 2), maxFiltrationValue (the largest scale, default the minimum enclosing radius) and threads, and no others.

The Euler characteristic curve of the Vietoris-Rips complex of a point cloud, one row per point, with Euclidean distances: see EulerCurveResult. Options maxSimplexDimension (the largest simplices counted, default 2), maxFiltrationValue (the largest scale, default the minimum enclosing radius) and threads, and no others.

Attributes

Source
TDA4j.scala
def eulerCurveFromPoints(points: Array[Array[Double]]): EulerCurveResult

Attributes

Source
TDA4j.scala
def h1Bars(points: Array[Array[Double]]): Array[Array[Double]]

The loops of the point cloud's Vietoris-Rips complex: one row (birth, death) per persistent H¹ class, most persistent first. Row i is cocycleIndex = i of circularCoordinates; pick r between its birth and death.

The loops of the point cloud's Vietoris-Rips complex: one row (birth, death) per persistent H¹ class, most persistent first. Row i is cocycleIndex = i of circularCoordinates; pick r between its birth and death.

Attributes

Source
TDA4j.scala
def h1Bars(points: Array[Array[Double]], numLandmarks: Int): Array[Array[Double]]

h1Bars for Perea's sparse coordinates over numLandmarks maxmin landmarks (0: every point): the loops of the nerve of the balls around the landmarks, numbered as circularCoordinates and toroidalCoordinates with the same numLandmarks take them; a scale is then a ball's radius.

h1Bars for Perea's sparse coordinates over numLandmarks maxmin landmarks (0: every point): the loops of the nerve of the balls around the landmarks, numbered as circularCoordinates and toroidalCoordinates with the same numLandmarks take them; a scale is then a ball's radius.

Attributes

Source
TDA4j.scala
def h1Bars(points: Array[Array[Double]], numLandmarks: Int, complex: String): Array[Array[Double]]

h1Bars for the loops of another complex: complex is "vr" (the default of the shorter forms), "cech" or "alpha", as persistence takes it. The loops of "cech" and "alpha" are those of the diagram of that complex over the field with 47 elements, at a ball's radius, numbered as circularCoordinates and toroidalCoordinates with the same complex take them; they have no sparse form, so numLandmarks must be 0.

h1Bars for the loops of another complex: complex is "vr" (the default of the shorter forms), "cech" or "alpha", as persistence takes it. The loops of "cech" and "alpha" are those of the diagram of that complex over the field with 47 elements, at a ball's radius, numbered as circularCoordinates and toroidalCoordinates with the same complex take them; they have no sparse form, so numLandmarks must be 0.

Attributes

Source
TDA4j.scala
def h1Bars(points: Array[Array[Double]], numLandmarks: Int, complex: String, prime: Int): Array[Array[Double]]

h1Bars of complex over the field with prime elements (an odd prime): the one circularCoordinates and toroidalCoordinates are given for the same loops. Vietoris-Rips loops do not depend on it.

h1Bars of complex over the field with prime elements (an odd prime): the one circularCoordinates and toroidalCoordinates are given for the same loops. Vietoris-Rips loops do not depend on it.

Attributes

Source
TDA4j.scala
def harmonicChainBarcodeFromDistanceMatrix(distances: Array[Array[Double]], options: Array[String]): PersistenceResult

harmonicChainBarcodeFromPoints for a finite metric space given as its full matrix of distances.

harmonicChainBarcodeFromPoints for a finite metric space given as its full matrix of distances.

Attributes

Source
TDA4j.scala
def harmonicChainBarcodeFromDistanceMatrix(distances: Array[Array[Double]]): PersistenceResult

Attributes

Source
TDA4j.scala
def harmonicChainBarcodeFromPoints(points: Array[Array[Double]], options: Array[String]): PersistenceResult

The harmonic chain barcode (Hou, Parsa and Wang) of the Vietoris-Rips complex of a point cloud: each bar is a harmonic cycle, orthogonal to all boundaries, that stays harmonic for the bar's whole life, and cycleVertices and cycleCoefficients of the bar are that chain. Harmonic means an inner product, so the field is the real numbers (field R, the default, with the tolerance epsilon) or the exact rationals (Q); Z is an error. Options maxDimension (the top degree of the bars, default 2), maxFiltrationValue, field, epsilon, includeZeroLength, minPersistence, minPersistenceFraction and threads, and no others. See HarmonicChainBarcode.

The harmonic chain barcode (Hou, Parsa and Wang) of the Vietoris-Rips complex of a point cloud: each bar is a harmonic cycle, orthogonal to all boundaries, that stays harmonic for the bar's whole life, and cycleVertices and cycleCoefficients of the bar are that chain. Harmonic means an inner product, so the field is the real numbers (field R, the default, with the tolerance epsilon) or the exact rationals (Q); Z is an error. Options maxDimension (the top degree of the bars, default 2), maxFiltrationValue, field, epsilon, includeZeroLength, minPersistence, minPersistenceFraction and threads, and no others. See HarmonicChainBarcode.

Attributes

Source
TDA4j.scala
def harmonicChainBarcodeFromPoints(points: Array[Array[Double]]): PersistenceResult

Attributes

Source
TDA4j.scala
def harmonicRepresentativesFromDistanceMatrix(distances: Array[Array[Double]], options: Array[String]): PersistenceResult

harmonicRepresentativesFromPoints for a finite metric space given as its full matrix of distances.

harmonicRepresentativesFromPoints for a finite metric space given as its full matrix of distances.

Attributes

Source
TDA4j.scala
def harmonicRepresentativesFromDistanceMatrix(distances: Array[Array[Double]]): PersistenceResult

Attributes

Source
TDA4j.scala
def harmonicRepresentativesFromPoints(points: Array[Array[Double]], options: Array[String]): PersistenceResult

The ordinary barcode of the Vietoris-Rips complex of a point cloud with the Basu-Cox harmonic representatives: the chain of a bar is the harmonic cycle at its birth value, picked out by the persistence module alone (so it does not depend on how cells of equal value are ordered). The same options as harmonicChainBarcodeFromPoints except includeZeroLength, which a Basu-Cox chain does not exist for, and with representativeType (cycles, the default, or cocycles: the harmonic cocycle of the bar, at the last value of its life). See HarmonicRepresentatives.

The ordinary barcode of the Vietoris-Rips complex of a point cloud with the Basu-Cox harmonic representatives: the chain of a bar is the harmonic cycle at its birth value, picked out by the persistence module alone (so it does not depend on how cells of equal value are ordered). The same options as harmonicChainBarcodeFromPoints except includeZeroLength, which a Basu-Cox chain does not exist for, and with representativeType (cycles, the default, or cocycles: the harmonic cocycle of the bar, at the last value of its life). See HarmonicRepresentatives.

Attributes

Source
TDA4j.scala
def harmonicRepresentativesFromPoints(points: Array[Array[Double]]): PersistenceResult

Attributes

Source
TDA4j.scala
def homBars(first: Array[Array[Double]], second: Array[Array[Double]]): Array[Array[Double]]

The internal Hom of two barcodes (rows (dimension, birth, death)): the module of maps from the first to the second shifted by t, its bars in dimension q - p for a bar of dimension p and one of dimension q. See Barcode.hom.

The internal Hom of two barcodes (rows (dimension, birth, death)): the module of maps from the first to the second shifted by t, its bars in dimension q - p for a bar of dimension p and one of dimension q. See Barcode.hom.

Attributes

Source
TDA4j.scala
def homDimension(first: Array[Array[Double]], second: Array[Array[Double]]): Int

The dimension of the space of maps of persistence modules, degree by degree, between two barcodes.

The dimension of the space of maps of persistence modules, degree by degree, between two barcodes.

Attributes

Source
TDA4j.scala
def layout(rows: Int, cols: Int): Board

An empty board of rows by cols cells, 960 by 600 pixels, to fill with place(figure, row, col).

An empty board of rows by cols cells, 960 by 600 pixels, to fill with place(figure, row, col).

Attributes

Source
TDA4j.scala
def layout(rows: Int, cols: Int, width: Int, height: Int): Board

An empty board of rows by cols cells in a drawing width by height pixels.

An empty board of rows by cols cells in a drawing width by height pixels.

Attributes

Source
TDA4j.scala
def layout(rows: Int, cols: Int, width: Int, height: Int, gap: Int, widths: Array[Double], heights: Array[Double]): Board

An empty board with gap pixels between cells; the columns share the width in proportion to widths, the rows the height in proportion to heights (an empty array for equal ones).

An empty board with gap pixels between cells; the columns share the width in proportion to widths, the rows the height in proportion to heights (an empty array for equal ones).

Attributes

Source
TDA4j.scala
def loadResult(path: String): PersistenceResult

A result saved by PersistenceResult.save (or tda4j --save-result), with its bars, threshold, reported representatives and input, so it plots like the result it was. Its boundary matrix is not saved.

A result saved by PersistenceResult.save (or tda4j --save-result), with its bars, threshold, reported representatives and input, so it plots like the result it was. Its boundary matrix is not saved.

Attributes

Source
TDA4j.scala
def morseReductionFromDistanceMatrix(distances: Array[Array[Double]], options: Array[String]): MorseReductionResult

morseReductionFromPoints for a finite metric space given as its full matrix of distances.

morseReductionFromPoints for a finite metric space given as its full matrix of distances.

Attributes

Source
TDA4j.scala
def morseReductionFromDistanceMatrix(distances: Array[Array[Double]]): MorseReductionResult

Attributes

Source
TDA4j.scala
def morseReductionFromPoints(points: Array[Array[Double]], options: Array[String]): MorseReductionResult

The discrete Morse reduction of the Vietoris-Rips complex of a point cloud: see MorseReductionResult and DiscreteMorse. Options maxDimension (the top degree of the bars, default 2), maxFiltrationValue, strategy (reduction, the default, or coreduction), prime (the default is 17) and threads, and no others.

The discrete Morse reduction of the Vietoris-Rips complex of a point cloud: see MorseReductionResult and DiscreteMorse. Options maxDimension (the top degree of the bars, default 2), maxFiltrationValue, strategy (reduction, the default, or coreduction), prime (the default is 17) and threads, and no others.

Attributes

Source
TDA4j.scala
def morseReductionFromPoints(points: Array[Array[Double]]): MorseReductionResult

Attributes

Source
TDA4j.scala
def persistentLaplacianFromDistanceMatrix(distances: Array[Array[Double]], dimension: Int, from: Double, to: Double): PersistentLaplacianResult

persistentLaplacianFromPoints for a finite metric space given as its full matrix of distances.

persistentLaplacianFromPoints for a finite metric space given as its full matrix of distances.

Attributes

Source
TDA4j.scala
def persistentLaplacianFromPoints(points: Array[Array[Double]], dimension: Int, from: Double, to: Double): PersistentLaplacianResult

The persistent Laplacian of the Vietoris-Rips complex of a point cloud, on the simplices of dimension dimension that have entered by from, for the complex at to (from <= to; the filtration value is the scale, the larger of the distances in a simplex): see PersistentLaplacianResult and PersistentLaplacian.

The persistent Laplacian of the Vietoris-Rips complex of a point cloud, on the simplices of dimension dimension that have entered by from, for the complex at to (from <= to; the filtration value is the scale, the larger of the distances in a simplex): see PersistentLaplacianResult and PersistentLaplacian.

Attributes

Source
TDA4j.scala
def persistentLaplacianOfMapFromDistanceMatrices(sourceDistances: Array[Array[Double]], targetDistances: Array[Array[Double]], vertexMap: Array[Int], dimension: Int, from: Double, to: Double): PersistentLaplacianResult

persistentLaplacianOfMapFromPoints for two finite metric spaces given as their full matrices of distances.

persistentLaplacianOfMapFromPoints for two finite metric spaces given as their full matrices of distances.

Attributes

Source
TDA4j.scala
def persistentLaplacianOfMapFromPoints(sourcePoints: Array[Array[Double]], targetPoints: Array[Array[Double]], vertexMap: Array[Int], dimension: Int, from: Double, to: Double): PersistentLaplacianResult

The persistent Laplacian of a simplicial map between two Vietoris-Rips complexes: vertexMap(i) is the point of targetPoints that the point i of sourcePoints goes to. The simplices are those of dimension dimension of the target at to that the map hits, from the source at from; the kernel has the dimension of the rank of the map on homology. The map has to be simplicial (it sends every simplex of the source at from to a simplex of the target at to: for the identity on a point cloud, from <= to), else this says which simplex has no image. See PersistentLaplacian.ofMap.

The persistent Laplacian of a simplicial map between two Vietoris-Rips complexes: vertexMap(i) is the point of targetPoints that the point i of sourcePoints goes to. The simplices are those of dimension dimension of the target at to that the map hits, from the source at from; the kernel has the dimension of the rank of the map on homology. The map has to be simplicial (it sends every simplex of the source at from to a simplex of the target at to: for the identity on a point cloud, from <= to), else this says which simplex has no image. See PersistentLaplacian.ofMap.

Attributes

Source
TDA4j.scala
def productBars(first: Array[Array[Double]], second: Array[Array[Double]], filtration: String): Array[Array[Double]]

The barcode of the homology of the product of two filtered complexes from the barcodes of the two factors (rows (dimension, birth, death), as PersistenceResult.bars returns them, every dimension of each): a cell of the product enters at the larger (filtration = max, the default) or the sum (sum) of the values of its two factors. Right in the dimensions below the highest dimension both barcodes were computed to. See Barcode.kunneth.

The barcode of the homology of the product of two filtered complexes from the barcodes of the two factors (rows (dimension, birth, death), as PersistenceResult.bars returns them, every dimension of each): a cell of the product enters at the larger (filtration = max, the default) or the sum (sum) of the values of its two factors. Right in the dimensions below the highest dimension both barcodes were computed to. See Barcode.kunneth.

Attributes

Source
TDA4j.scala
def productBars(first: Array[Array[Double]], second: Array[Array[Double]]): Array[Array[Double]]

Attributes

Source
TDA4j.scala
def selectLandmarksFromDistanceMatrix(distances: Array[Array[Double]], options: Array[String]): LandmarkSelectionResult

Attributes

Source
TDA4j.scala
def selectLandmarksFromDistanceMatrix(distances: Array[Array[Double]]): LandmarkSelectionResult

As selectLandmarksFromPoints, from a distance matrix.

As selectLandmarksFromPoints, from a distance matrix.

Attributes

Source
TDA4j.scala
def selectLandmarksFromPoints(points: Array[Array[Double]], options: Array[String]): LandmarkSelectionResult

Attributes

Source
TDA4j.scala
def selectLandmarksFromPoints(points: Array[Array[Double]]): LandmarkSelectionResult

Step 1 of the two-step witness complex: select landmarks (options numLandmarks, required, landmarkSelector, landmarkSeed, and no others) and report them, 0-based, with their covering radius.

Step 1 of the two-step witness complex: select landmarks (options numLandmarks, required, landmarkSelector, landmarkSeed, and no others) and report them, 0-based, with their covering radius.

Attributes

Source
TDA4j.scala
def setPlotDefaults(settings: Array[String]): Unit

The plots a result draws from now on start from these changes, written as element.property=value ("palette=print", "style=print", "title.size=18", ...; see the plotting page of the user guide), until clearPlotDefaults. Whatever you chain onto a figure afterwards wins. A setting that is not one is an error that says what to write. They are the defaults of the calling thread, which for MATLAB is the whole session.

The plots a result draws from now on start from these changes, written as element.property=value ("palette=print", "style=print", "title.size=18", ...; see the plotting page of the user guide), until clearPlotDefaults. Whatever you chain onto a figure afterwards wins. A setting that is not one is an error that says what to write. They are the defaults of the calling thread, which for MATLAB is the whole session.

Attributes

Source
TDA4j.scala
def side(first: Figure, second: Figure): Board

The figures in one row, as one plot: board = TDA4j.side(result.plotBarcode(), result.plotDiagram()).

The figures in one row, as one plot: board = TDA4j.side(result.plotBarcode(), result.plotDiagram()).

Attributes

Source
TDA4j.scala
def side(first: Figure, second: Figure, third: Figure): Board

Three figures in one row.

Three figures in one row.

Attributes

Source
TDA4j.scala
def side(figures: Array[Figure]): Board

The figures of a Java array in one row.

The figures of a Java array in one row.

Attributes

Source
TDA4j.scala
def takensEmbedding(series: Array[Double], dimension: Int, delay: Int, stride: Int): Array[Array[Double]]

The sliding-window (Takens) embedding of a time series: one point for every stride-th start t, the window (x_t, x_{t+delay}, ..., x_{t+(dimension-1) delay}). See TakensEmbedding.

The sliding-window (Takens) embedding of a time series: one point for every stride-th start t, the window (x_t, x_{t+delay}, ..., x_{t+(dimension-1) delay}). See TakensEmbedding.

Attributes

Source
TDA4j.scala
def takensEmbedding(series: Array[Double], dimension: Int, delay: Int): Array[Array[Double]]

Attributes

Source
TDA4j.scala
def takensEmbeddingOfVectors(series: Array[Array[Double]], dimension: Int, delay: Int, stride: Int): Array[Array[Double]]

The same for a series of vectors, one row per time step: a point is the dimension rows of a window, one after the other.

The same for a series of vectors, one row per time step: a point is the dimension rows of a window, one after the other.

Attributes

Source
TDA4j.scala
def takensEmbeddingOfVectors(series: Array[Array[Double]], dimension: Int, delay: Int): Array[Array[Double]]

Attributes

Source
TDA4j.scala
def tomatoClusters(points: Array[Array[Double]], k: Int, tau: Double): Array[Int]

The ToMATo cluster (0 for the cluster of the highest peak, numbered by decreasing peak height) of every point: see ToMATo.cluster. k nearest neighbours define the graph and the density, tau is the depth below which two peaks merge.

The ToMATo cluster (0 for the cluster of the highest peak, numbered by decreasing peak height) of every point: see ToMATo.cluster. k nearest neighbours define the graph and the density, tau is the depth below which two peaks merge.

Attributes

Source
TDA4j.scala
def tomatoDiagram(points: Array[Array[Double]], k: Int): Array[Array[Double]]

The valleys between the peaks of the ToMATo density of a point cloud: one row (birth, death) per bar, death Inf for the highest peak of each component. Its persistence is the depth of the valley: pick tau in a gap.

The valleys between the peaks of the ToMATo density of a point cloud: one row (birth, death) per bar, death Inf for the highest peak of each component. Its persistence is the depth of the valley: pick tau in a gap.

Attributes

Source
TDA4j.scala
def toroidalCoordinates(points: Array[Array[Double]], r: Double, cocycleIndices: Array[Int]): ToroidalCoordinatesResult

Attributes

Source
TDA4j.scala
def toroidalCoordinates(points: Array[Array[Double]], r: Double, cocycleIndices: Array[Int], prime: Int, reduce: Boolean): ToroidalCoordinatesResult

Toroidal coordinates for several loops of h1Bars alive together at r: see CircularCoordinates.computeToroidal. reduce (default true) applies the lattice reduction.

Toroidal coordinates for several loops of h1Bars alive together at r: see CircularCoordinates.computeToroidal. reduce (default true) applies the lattice reduction.

Attributes

Source
TDA4j.scala
def toroidalCoordinates(points: Array[Array[Double]], r: Double, cocycleIndices: Array[Int], prime: Int, reduce: Boolean, numLandmarks: Int): ToroidalCoordinatesResult

toroidalCoordinates with numLandmarks (0: every point): Perea's sparse coordinates over that many maxmin landmarks, as in circularCoordinates.

toroidalCoordinates with numLandmarks (0: every point): Perea's sparse coordinates over that many maxmin landmarks, as in circularCoordinates.

Attributes

Source
TDA4j.scala
def toroidalCoordinates(points: Array[Array[Double]], r: Double, cocycleIndices: Array[Int], prime: Int, reduce: Boolean, numLandmarks: Int, complex: String): ToroidalCoordinatesResult

toroidalCoordinates of the loops cocycleIndices of h1Bars of complex ("vr", "cech" or "alpha"), as circularCoordinates takes it: CircularCoordinates.toroidal(diagram, ...) for the other two complexes.

toroidalCoordinates of the loops cocycleIndices of h1Bars of complex ("vr", "cech" or "alpha"), as circularCoordinates takes it: CircularCoordinates.toroidal(diagram, ...) for the other two complexes.

Attributes

Source
TDA4j.scala
def zigzagFromComplexes(complexes: Array[Array[Array[Int]]], options: Array[String]): ZigzagResult

The zigzag persistent homology of a list of complexes (each an array of simplices, as arrays of vertex numbers), each included in the next or the next in it, or joined through the union (option link union) or the intersection (intersection) of two consecutive complexes, which then takes a position of its own. Options maxDimension, prime and link (none, the default, union or intersection), and no others.

The zigzag persistent homology of a list of complexes (each an array of simplices, as arrays of vertex numbers), each included in the next or the next in it, or joined through the union (option link union) or the intersection (intersection) of two consecutive complexes, which then takes a position of its own. Options maxDimension, prime and link (none, the default, union or intersection), and no others.

Attributes

Source
TDA4j.scala
def zigzagFromComplexes(complexes: Array[Array[Array[Int]]]): ZigzagResult

Attributes

Source
TDA4j.scala
def zigzagFromSteps(initial: Array[Array[Int]], simplices: Array[Array[Int]], additions: Array[Boolean], options: Array[String]): ZigzagResult

The zigzag persistent homology of a sequence of complexes given by steps from the complex initial (simplices as arrays of vertex numbers): step k adds the simplex simplices(k) if additions(k) is true and removes it otherwise. A simplex is added after its facets and removed before the simplices it is a facet of. Options maxDimension (the top degree of the bars, default 2) and prime (default 17), and no others. See ZigzagResult and ZigzagPersistence.

The zigzag persistent homology of a sequence of complexes given by steps from the complex initial (simplices as arrays of vertex numbers): step k adds the simplex simplices(k) if additions(k) is true and removes it otherwise. A simplex is added after its facets and removed before the simplices it is a facet of. Options maxDimension (the top degree of the bars, default 2) and prime (default 17), and no others. See ZigzagResult and ZigzagPersistence.

Attributes

Source
TDA4j.scala
def zigzagFromSteps(initial: Array[Array[Int]], simplices: Array[Array[Int]], additions: Array[Boolean]): ZigzagResult

Attributes

Source
TDA4j.scala