
The function filtrationDiag
computes the persistence diagram of the filtration.
filtrationDiag(
filtration, maxdimension, library = "GUDHI", location = FALSE,
printProgress = FALSE, diagLimit = NULL)
The function filtrationDiag
returns a list with the following elements:
an object of class diagram
, a
only if location=TRUE
and if "Dionysus"
is used for computing the persistence diagram: a vector of length
only if location=TRUE
and if "Dionysus"
is used for computing the persistence diagram: a vector of length
only if location=TRUE
and if "Dionysus"
is used for computing the persistence diagram: a
a list representing the input filtration. This list consists of three components: "cmplx"
, a list representing the complex, "values"
, a vector representing the filtration values, and "increasing"
, a logical variable indicating if the filtration values are in increasing order or in decreasing order.
integer: max dimension of the homological features to be computed. (e.g. 0 for connected components, 1 for connected components and loops, 2 for connected components, loops, voids, etc.)
a string specifying which library to compute the persistence diagram. The user can choose either the library "GUDHI"
or "Dionysus"
. The default value is "GUDHI"
.
if TRUE
and if "Dionysus"
is used for computing the persistence diagram, location of birth point, death point, and representative cycles, of each homological feature is returned.
logical: if TRUE
, a progress bar is printed. The default value is FALSE
.
a number that replaces Inf
in the persistence diagram. The default value is NULL
and Inf
value in the persistence diagram will not be replaced.
Jisu Kim
The user can decide to use either the C++ library GUDHI or Dionysus. See refereneces.
Maria C (2014). "GUDHI, Simplicial Complexes and Persistent Homology Packages." https://project.inria.fr/gudhi/software/ .
Morozov D (2007). "Dionysus, a C++ library for computing persistent homology". https://www.mrzv.org/software/dionysus/
Edelsbrunner H, Harer J (2010). "Computational topology: an introduction." American Mathematical Society.
Fasy B, Lecci F, Rinaldo A, Wasserman L, Balakrishnan S, Singh A (2013). "Statistical Inference For Persistent Homology." (arXiv:1303.7117). Annals of Statistics.
summary.diagram
, plot.diagram
n <- 5
X <- cbind(cos(2*pi*seq_len(n)/n), sin(2*pi*seq_len(n)/n))
maxdimension <- 1
maxscale <- 1.5
dist <- "euclidean"
library <- "Dionysus"
FltRips <- ripsFiltration(X = X, maxdimension = maxdimension,
maxscale = maxscale, dist = "euclidean", library = "Dionysus",
printProgress = TRUE)
DiagFltRips <- filtrationDiag(filtration = FltRips, maxdimension = maxdimension,
library = "Dionysus", location = TRUE, printProgress = TRUE)
plot(DiagFltRips[["diagram"]])
FUNvalues <- X[, 1] + X[, 2]
FltFun <- funFiltration(FUNvalues = FUNvalues, cmplx = FltRips[["cmplx"]])
DiagFltFun <- filtrationDiag(filtration = FltFun, maxdimension = maxdimension,
library = "Dionysus", location = TRUE, printProgress = TRUE)
plot(DiagFltFun[["diagram"]], diagLim = c(-2, 5))
Run the code above in your browser using DataLab