TopologicalVector | R Documentation |
Computes topological vectors from a list of persistence diagrams. The topological vector associated to a persistence diagram is the sorted vector of a slight modification of the pairwise distances between the persistence diagram points. See https://diglib.eg.org/handle/10.1111/cgf12692 for more details.
rgudhi::PythonClass
-> rgudhi::SKLearnClass
-> rgudhi::VectorRepresentationStep
-> TopologicalVector
rgudhi::PythonClass$get_python_class()
rgudhi::PythonClass$set_python_class()
rgudhi::SKLearnClass$get_params()
rgudhi::SKLearnClass$set_params()
rgudhi::VectorRepresentationStep$apply()
rgudhi::VectorRepresentationStep$fit()
rgudhi::VectorRepresentationStep$fit_transform()
rgudhi::VectorRepresentationStep$transform()
new()
The TopologicalVector
constructor.
TopologicalVector$new(threshold = 10)
threshold
An integer value specifying the number of distances to
keep. Defaults to 10L
. This is the dimension of the topological
vector. If -1
, this threshold is computed from the list of
persistence diagrams by considering the one with the largest number of
points and using the dimension of its corresponding topological vector
as threshold.
An object of class TopologicalVector
.
clone()
The objects of this class are cloneable with this method.
TopologicalVector$clone(deep = FALSE)
deep
Whether to make a deep clone.
Mathieu Carrière
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(use = TRUE)
dgm <- ds$apply(dgm)
tv <- TopologicalVector$new()
tv$apply(dgm)
tv$fit_transform(list(dgm))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.