-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME.Rmd
More file actions
46 lines (36 loc) · 1.8 KB
/
README.Rmd
File metadata and controls
46 lines (36 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# rgudhi
<!-- badges: start -->
[](https://github.com/LMJL-Alea/rgudhi/actions/workflows/R-CMD-check.yaml)
[](https://github.com/LMJL-Alea/rgudhi/actions)
[](https://app.codecov.io/gh/LMJL-Alea/rgudhi?branch=master)
[](https://github.com/LMJL-Alea/rgudhi/actions)
[](https://CRAN.R-project.org/package=rgudhi)
<!-- badges: end -->
The goal of `rgudhi` is to provide an R interface to the Python package [gudhi](https://gudhi.inria.fr/python/latest/). The [GUDHI](https://gudhi.inria.fr) library is a generic open source C++ library, with a Python interface, for Topological Data Analysis (TDA) and Higher Dimensional Geometry Understanding. The library offers state-of-the-art data structures and algorithms to construct simplicial complexes and compute persistent homology.
## Installation
You can install the development version of `rgudhi` from [GitHub](https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("LMJL-Alea/rgudhi")
```
## Example: Persistence diagram using an Alpha complex
```{r example}
library(rgudhi)
n <- 10
X <- seq_circle(n)
ac <- AlphaComplex$new(points = X)
st <- ac$create_simplex_tree()
st$persistence()
```