Skip to contents

This is a class for padding a list of persistence diagrams with dummy points, so that all persistence diagrams end up with the same number of points.

Author

Mathieu Carrière

Super classes

rgudhi::PythonClass -> rgudhi::SKLearnClass -> rgudhi::PreprocessingStep -> Padding

Methods

Inherited methods


Method new()

The Padding constructor.

Usage

Padding$new(use = FALSE)

Arguments

use

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

Returns

An object of class Padding.


Method clone()

The objects of this class are cloneable with this method.

Usage

Padding$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

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)
pad <- Padding$new()
pad$apply(dgm)
pad$fit_transform(list(dgm))
}