| persistent_homology | R Documentation |
Computes persistent homology by building simplicial complexes at decreasing weight thresholds and tracking the birth/death of topological features.
persistent_homology(x, n_steps = 20L, max_dim = 3L)
x |
A square matrix, |
n_steps |
Number of filtration steps (default 20). |
max_dim |
Maximum simplex dimension to track (default 3). |
A persistent_homology object with:
Data frame: threshold, dimension,
betti at each filtration step.
Data frame of birth-death pairs:
dimension, birth, death, persistence.
Numeric vector of filtration thresholds.
mat <- matrix(c(0,.6,.5,.6,0,.4,.5,.4,0), 3, 3)
colnames(mat) <- rownames(mat) <- c("A","B","C")
ph <- persistent_homology(mat, n_steps = 10)
print(ph)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.