StrongWitnessComplex: R6 Class for Strong Witness Complex

StrongWitnessComplexR Documentation

R6 Class for Strong Witness Complex

Description

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 \insertCiteboissonnat2014simplex;textualrgudhi.

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

Public methods

Inherited methods

Method new()

StrongWitnessComplex constructor.

Usage
StrongWitnessComplex$new(nearest_landmark_table)
Arguments
nearest_landmark_table

A list of tibbles specifying for each witness w, the ordered list of nearest landmarks with id in column nearest_landmark and distance to w in column distance.

Returns

A StrongWitnessComplex object storing the strong Witness complex.


Method clone()

The objects of this class are cloneable with this method.

Usage
StrongWitnessComplex$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples


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


rgudhi documentation built on March 31, 2023, 11:38 p.m.