This is a class for extracting finite or essential points in persistence diagrams.
Super classes
rgudhi::PythonClass -> rgudhi::SKLearnClass -> rgudhi::PreprocessingStep -> DiagramSelector
Methods
Inherited methods
Method new()
The DiagramSelector constructor.
Usage
DiagramSelector$new(
use = FALSE,
limit = Inf,
point_type = c("finite", "essential")
)Arguments
useA boolean value specifying whether to use the class. Defaults to
FALSE.limitA numeric value specifying the second coordinate value which is the criterion for being an essential point. Defaults to \(\infty\).
point_typeA string specifying the type of the points that are going to be extracted. Choices are either
“finite”or“essential”. Defaults to“finite”.
Examples
if (FALSE) { # reticulate::py_module_available("gudhi")
X <- seq_circle(10)
ac <- AlphaComplex$new(points = X)
st <- ac$create_simplex_tree()
dgm <- st$compute_persistence()$persistence_intervals_in_dimension(0)
ds <- DiagramSelector$new()
ds$apply(dgm)
ds$fit_transform(list(dgm))
}