- X
an \(n\) by \(d\) matrix of coordinates, used by the function FUN
, where \(n\) is the number of points stored in X
and \(d\) is the dimension of the space.
- FUN
a function whose inputs are 1) an \(n\) by \(d\) matrix of coordinates X
, 2) an \(m\) by \(d\) matrix of coordinates Grid
, 3) an optional smoothing parameter, and returns a numeric vector of length \(m\). For example see distFct
, kde
, and dtm
which compute the distance function, the kernel density estimator and the distance to measure, over a grid of points using the input X
. Note that Grid
is not an input of bootstrapDiagram
, but is automatically computed by the function using lim
and by
.
- lim
a \(2\) by \(d\) matrix, where each column specifies the range of each dimension of the grid, over which the function FUN
is evaluated.
- by
either a number or a vector of length \(d\) specifying space between points of the grid in each dimension. If a number is given, then same space is used in each dimension.
- maxdimension
a number that indicates the maximum dimension to compute persistent homology to. The default value is \(d - 1\), which is (dimension of embedding space - 1).
- sublevel
a logical variable indicating if the Persistence Diagram should be computed for sublevel sets (TRUE
) or superlevel sets (FALSE
) of the function. The default value is TRUE
.
- library
a string specifying which library to compute the persistence diagram. The user can choose either the library "GUDHI"
, "Dionysus"
, or "PHAT"
. The default value is "GUDHI"
.
- B
the number of bootstrap iterations. The default value is 30
.
- alpha
The function bootstrapDiagram
returns a (1 - alpha
) quantile. The default value is 0.05
.
- distance
a string specifying the distance to be used for persistence diagrams: either "bottleneck"
or "wasserstein"
. The default value is "bottleneck"
.
- dimension
dimension
is an integer or a vector specifying the dimension of the features used to compute the bottleneck distance. 0
for connected components, 1
for loops, 2
for voids, and so on. The default value is 1
if \(maxdimension \ge 1\), and else 0
.
- p
if distance == "wasserstein"
, then p
is an integer specifying the power to be used in the computation of the Wasserstein distance. The default value is 1
.
- parallel
logical: if TRUE
the bootstrap iterations are parallelized, using the library parallel
. The default value is FALSE
.
- printProgress
if TRUE
a progress bar is printed. The default value is FALSE
.
- weight
either NULL, a number, or a vector of length \(n\). If it is NULL, weight is not used. If it is a number, then same weight is applied to each points of X
. If it is a vector, weight
represents weights of each points of X
. The default value is NULL
.
- ...
additional parameters for the function FUN
.