Package: phutil 0.0.2

Aymeric Stamm

phutil: Persistence Homology Utilities

A low-level package for hosting persistence data. It is part of the 'TDAverse' suite of packages, which is designed to provide a collection of packages for enabling machine learning and data science tasks using persistent homology. Implements a class for hosting persistence data, a number of coercers from and to already existing and used data structures from other packages and functions to compute distances between persistence diagrams. A formal definition and study of bottleneck and Wasserstein distances can be found in Bubenik, Scott and Stanley (2023) <doi:10.1007/s41468-022-00103-8>. Their implementation in 'phutil' relies on the 'C++' Hera library developed by Kerber, Morozov and Nigmetov (2017) <doi:10.1145/3064175>.

Authors:Aymeric Stamm [aut, cre], Jason Cory Brunson [aut], Michael Kerber [ctb], Dmitriy Morozov [ctb], Arnur Nigmetov [ctb]

phutil_0.0.2.tar.gz
phutil_0.0.2.tar.gz(r-4.7-arm64)phutil_0.0.2.tar.gz(r-4.7-x86_64)phutil_0.0.2.tar.gz(r-4.6-arm64)phutil_0.0.2.tar.gz(r-4.6-x86_64)
phutil_0.0.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
phutil/json (API)
NEWS

# Install 'phutil' in R:
install.packages('phutil', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/tdaverse/phutil/issues

Pkgdown/docs site:https://tdaverse.github.io

Uses libs:
  • c++– GNU Standard C++ Library v3
  • openmp– GCC OpenMP (GOMP) support library
Datasets:

On CRAN:

Conda:

quartocppopenmp

4.26 score 2 packages 30 scripts 582 downloads 10 exports 4 dependencies

Last updated from:760b8b5e10. Checks:6 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-devel-arm64OK142
linux-devel-x86_64OK151
source / vignettesOK239
linux-release-arm64OK132
linux-release-x86_64OK142
wasm-releaseOK138

Exports:as_diagramas_persistenceas_persistence_setbottleneck_distancebottleneck_pairwise_distancesget_pairskantorovich_distancekantorovich_pairwise_distanceswasserstein_distancewasserstein_pairwise_distances

Dependencies:BHclicpp11rlang

The persistence class

Rendered frompersistence-class.qmdusingquarto::htmlon Jun 16 2026.

Last update: 2025-05-15
Started: 2025-05-15

Validation and Benchmark of Wasserstein Distances

Rendered fromvalidation-benchmark.qmdusingquarto::htmlon Jun 16 2026.

Last update: 2026-04-17
Started: 2025-05-15

Readme and manuals

Help Manual

Help pageTopics
A sample of persistence diagrams from the arch spiralarch_spirals
Distances between two persistence diagramsbottleneck_distance distances kantorovich_distance wasserstein_distance
Toy Data: Noisy circlenoisy_circle noisy_circle_points noisy_circle_ripserr noisy_circle_tda_rips
Pairwise distances within a set of persistence diagramsbottleneck_pairwise_distances kantorovich_pairwise_distances pairwise-distances wasserstein_pairwise_distances
An 'S3' class for storing persistence dataas.data.frame.persistence as.matrix.persistence as_diagram as_diagram.persistence as_diagram.PHom as_persistence as_persistence.data.frame as_persistence.diagram as_persistence.hclust as_persistence.list as_persistence.matrix as_persistence.persistence as_persistence.PHom format.persistence get_pairs persistence print.persistence
Toy Data: A sample of persistence diagramspersistence_sample
An 'S3' class object for storing sets of persistence diagramsas_persistence_set format.persistence_set persistence-set print.persistence_set
A sample of persistence diagrams from the trefoiltrefoils