computeNL {TDAvec} | R Documentation |
A Vector Summary of the Normalized Life Curve
Description
For a given persistence diagram ,
computeNL()
vectorizes the normalized life (NL) curve
where . Points of
with infinite death value are ignored
Usage
computeNL(D, homDim, scaleSeq)
Arguments
D |
matrix with three columns containing the dimension, birth and death values respectively |
homDim |
homological dimension (0 for |
scaleSeq |
numeric vector of increasing scale values used for vectorization |
Value
A numeric vector whose elements are the average values of the persistent entropy summary function computed between each pair of consecutive scale points of scaleSeq
=:
where
Author(s)
Umar Islambekov
References
Chung, Y. M., & Lawson, A. (2022). Persistence curves: A canonical framework for summarizing persistence diagrams. Advances in Computational Mathematics, 48(1), 1-42.
Examples
N <- 100
set.seed(123)
# sample N points uniformly from unit circle and add Gaussian noise
X <- TDA::circleUnif(N,r=1) + rnorm(2*N,mean = 0,sd = 0.2)
# compute a persistence diagram using the Rips filtration built on top of X
D <- TDA::ripsDiag(X,maxdimension = 1,maxscale = 2)$diagram
scaleSeq = seq(0,2,length.out=11) # sequence of scale values
# compute NL for homological dimension H_0
computeNL(D,homDim=0,scaleSeq)
# compute NL for homological dimension H_1
computeNL(D,homDim=1,scaleSeq)
[Package TDAvec version 0.1.3 Index]