The persistent Laplacian of a filtered complex (Wang, Nguyen and Wei; Mémoli, Wan and Wang): a symmetric positive semidefinite matrix Δ_k^{s,t} on the k-cells of the complex at s, for every pair s H_k(K_t), and whose other eigenvalues carry geometric information the barcode does not (the smallest nonzero one is a persistent spectral gap).
val rips = VietorisRips(points, maxDimension = 1)
val laplacian = PersistentLaplacian(rips, dimension = 1, from = 0.4, to = 0.9)
laplacian.bettiNumber // loops at 0.4 that are still loops at 0.9
laplacian.spectralGap // the smallest nonzero eigenvalue
laplacian.eigenvalues // ascending
With C^{s,t}_{k+1} the chains of K_t whose boundary lies in K_s, the persistent Laplacian is ∂ ∂^* + ∂_k^{s *} ∂_k^s, the first term being the boundary of C^{s,t}_{k+1} into the k-chains of K_s composed with its adjoint, in the inner product in which the cells are orthonormal. Written with the matrices of K_t and its rows split into those in K_s (D) and those in K_t \ K_s (R), that is D (1 - R^+ R) D^T + A^T A, A being the boundary of the k-cells of K_s; at s = t it is the Hodge Laplacian. The coefficients are real numbers, the matrices dense: for complexes of a few thousand cells in the dimension asked for. The stream has to hold the cells of dimension dimension + 1 (a stream cut off at homological degree k does, up to k).
The persistent Laplacian of a simplicial map, from ofMap: on the simplices of the target that the map hits. kernel is spanned by the cycles of the source's image that are orthogonal to the boundaries from the target that the image of the source's cycles allows: its dimension, bettiNumber, is the rank of the map on homology.
The persistent Laplacian of a simplicial map, from ofMap: on the simplices of the target that the map hits. kernel is spanned by the cycles of the source's image that are orthogonal to the boundaries from the target that the image of the source's cycles allows: its dimension, bettiNumber, is the rank of the map on homology.
What a persistent Laplacian is, whichever way it was built: a symmetric positive semidefinite matrix Δ = X X^T on cells, for a factor X with a column for each boundary and coboundary direction, so that the eigenvalues are the squares of its singular values (no squared condition number) and the kernel is found by the rank of X.
What a persistent Laplacian is, whichever way it was built: a symmetric positive semidefinite matrix Δ = X X^T on cells, for a factor X with a column for each boundary and coboundary direction, so that the eigenvalues are the squares of its singular values (no squared condition number) and the kernel is found by the rank of X.
The persistent Laplacian of the simplicial map vertexMap from the complex source to the complex target, in dimensionk (Gülen, Mémoli, Wan and Wang, Persistent Laplacians of simplicial maps): a symmetric positive semidefinite matrix on the k-simplices of the target that the map hits, whose kernel has the dimension of the rank of H_k(source) -> H_k(target), and whose other eigenvalues carry what the barcode of the map does not. For an inclusion it is the persistent Laplacian of the pair of complexes.
The persistent Laplacian of the simplicial map vertexMap from the complex source to the complex target, in dimensionk (Gülen, Mémoli, Wan and Wang, Persistent Laplacians of simplicial maps): a symmetric positive semidefinite matrix on the k-simplices of the target that the map hits, whose kernel has the dimension of the rank of H_k(source) -> H_k(target), and whose other eigenvalues carry what the barcode of the map does not. For an inclusion it is the persistent Laplacian of the pair of complexes.
// two vertices of a path folded onto one: the map of an edge to a point
val path = Seq(∆(0), ∆(1), ∆(2), ∆(0, 1), ∆(1, 2))
val folded = Seq(∆(0), ∆(1), ∆(0, 1))
PersistentLaplacian.ofMap(path, folded, dimension = 0)(v => if v == 2 then 0 else v).bettiNumber // 1
source and target hold simplices (every dimension, or just k - 1 to k + 1) and vertexMap has to send each simplex of the source to a simplex of the target, or to a simplex that the target would hold had it the cell: the image of a simplex with two vertices on one image is not a k-simplex, and the map sends it to zero. The image of v0 < ... < vk is the oriented simplex on f(v0), ..., f(vk), and the target's order of the vertices (the Ordering given for W) is the one its simplices' boundaries are written in.
Where the map sends several simplices of the source onto one simplex of the target, the target's simplex gets the weight w, the number of simplices of the source above it, and its chain the length 1 / sqrt(w): the weights the construction asks for, with which the map of chains is a partial isometry (a simplex nothing maps onto has weight 1). The matrix and its eigenvalues are in the orthonormal coordinates of that inner product; Spectrum.weights says which cells are scaled, and kernel hands back chains on the target's cells. Without a merge (an inclusion, or any map that is injective on the k-simplices) every weight is 1 and the cells are orthonormal. The source holds its (k+1)-simplices as well, for their weights: they set the lengths of the target's cells there, which change the eigenvalues but not the kernel.
The persistent Laplacian of the simplicial map vertexMap from the complex of source at the filtration value from to the complex of target at to: ofMap on their simplices of those values. For the two steps of a filtered complex, source and target are one stream, and a map that is the identity on vertices is the persistent Laplacian of the stream from from to to.
The persistent Laplacian of the simplicial map vertexMap from the complex of source at the filtration value from to the complex of target at to: ofMap on their simplices of those values. For the two steps of a filtered complex, source and target are one stream, and a map that is the identity on vertices is the persistent Laplacian of the stream from from to to.