| ProminentPoints | R Documentation |
This is a class or removing points that are close or far from the diagonal in persistence diagrams. If persistence diagrams are 2-column tibble::tibbles (i.e. persistence diagrams with ordinary features), points are ordered and thresholded by distance-to-diagonal. If persistence diagrams are 1-column tibble::tibbles (i.e. persistence diagrams with essential features), points are not ordered and thresholded by first coordinate.
rgudhi::PythonClass -> rgudhi::SKLearnClass -> rgudhi::PreprocessingStep -> ProminentPoints
new()The ProminentPoints constructor.
ProminentPoints$new(
use = FALSE,
num_pts = 10,
threshold = -1,
location = c("upper", "lower")
)useA boolean value specifying whether to use the class. Defaults
to FALSE.
num_ptsAn integer value specifying the cardinality threshold.
Defaults to 10L. If location == "upper", keeps the top num_pts
points that are the farthest away from the diagonal. If location == "lower", keeps the top num_pts points that are the closest to the
diagonal.
thresholdA numeric value specifying the distance-to-diagonal
threshold. Defaults to -1.0. If location == "upper", keeps the
points that are at least at a distance threshold from the diagonal. If
location == "lower", keeps the points that are at most at a distance
threshold from the diagonal.
locationA string specifying whether to keep the points that are
far away ("upper") or close ("lower") to the diagonal. Defaults to
"upper".
An object of class ProminentPoints.
clone()The objects of this class are cloneable with this method.
ProminentPoints$clone(deep = FALSE)
deepWhether 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)
pp <- ProminentPoints$new()
pp$apply(dgm)
pp$fit_transform(list(dgm))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.