DiagramSelector: Preprocessing: Diagram Selector

DiagramSelectorR Documentation

Preprocessing: Diagram Selector

Description

This is a class for extracting finite or essential points in persistence diagrams.

Super classes

rgudhi::PythonClass -> rgudhi::SKLearnClass -> rgudhi::PreprocessingStep -> DiagramSelector

Methods

Public methods

Inherited methods

Method new()

The DiagramSelector constructor.

Usage
DiagramSelector$new(
  use = FALSE,
  limit = Inf,
  point_type = c("finite", "essential")
)
Arguments
use

A boolean value specifying whether to use the class. Defaults to FALSE.

limit

A numeric value specifying the second coordinate value which is the criterion for being an essential point. Defaults to \infty.

point_type

A string specifying the type of the points that are going to be extracted. Choices are either ⁠“finite”⁠ or ⁠“essential”⁠. Defaults to ⁠“finite”⁠.

Returns

An object of class DiagramSelector.


Method clone()

The objects of this class are cloneable with this method.

Usage
DiagramSelector$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Author(s)

Mathieu Carrière

Examples


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))


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