A Witness complex \(\mathrm{Wit}(W,L)\) is a simplicial complex defined on two sets of points in \(R^D\). The data structure is described in Boissonnat and Maria (2014) .
Details
The class constructs a (strong) witness complex for a given table of nearest landmarks with respect to witnesses.
Super classes
rgudhi::PythonClass
-> rgudhi::WitnessComplex
-> StrongWitnessComplex
Methods
Method new()
StrongWitnessComplex
constructor.
Usage
StrongWitnessComplex$new(nearest_landmark_table)
Arguments
nearest_landmark_table
A list of
tibble
s specifying for each witnessw
, the ordered list of nearest landmarks with id in columnnearest_landmark
and distance tow
in columndistance
.
Examples
if (FALSE) { # reticulate::py_module_available("gudhi")
withr::with_seed(1234, {
l <- list(
tibble::tibble(
nearest_landmark = sample.int(10),
distance = sort(rexp(10))
),
tibble::tibble(
nearest_landmark = sample.int(10),
distance = sort(rexp(10))
)
)
})
wc <- StrongWitnessComplex$new(nearest_landmark_table = l)
wc
}