Skip to content

Commit 8678563

Browse files
committed
Update README with hyperlink for inphr website and function help.
1 parent ca2cd63 commit 8678563

2 files changed

Lines changed: 41 additions & 33 deletions

File tree

README.Rmd

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ knitr::opts_chunk$set(
2020
[![R-CMD-check](https://github.com/tdaverse/inphr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tdaverse/inphr/actions/workflows/R-CMD-check.yaml)
2121
<!-- badges: end -->
2222

23-
The goal of {inphr} is to provide a set of functions for performing null
24-
hypothesis testing on samples of persistence diagrams using the theory of
25-
permutations. Currently, only two-sample testing is implemented. Inputs can be
26-
either samples of persistence diagrams themselves or vectorizations. In the
27-
former case, they are embedded in a metric space using either the Bottleneck or
28-
Wasserstein distance. In the former case, persistence data becomes functional
29-
data and inference is performed using tools available in the
30-
[{fdatest}](https://permaverse.github.io/fdatest/) package.
23+
The goal of [{inphr}](https://tdaverse.github.io/inphr/) is to provide a set of
24+
functions for performing null hypothesis testing on samples of persistence
25+
diagrams using the theory of permutations. Currently, only two-sample testing is
26+
implemented. Inputs can be either samples of persistence diagrams themselves or
27+
vectorizations. In the former case, they are embedded in a metric space using
28+
either the Bottleneck or Wasserstein distance. In the former case, persistence
29+
data becomes functional data and inference is performed using tools available in
30+
the [{fdatest}](https://permaverse.github.io/fdatest/) package.
3131

3232
## Installation
3333

@@ -53,13 +53,17 @@ testing. They are available in the package as `trefoils1`, `trefoils2`, and
5353
noisy samples of trefoil knots, while the third set contains persistence
5454
diagrams computed from noisy samples of 2-armed Archimedean spirals. Each set
5555
contains 24 persistence diagrams, each computed from a sample of 120 points
56-
sampled from the respective shape, with Gaussian noise added (standard
57-
deviation = 0.05). The persistence diagrams were computed using the
58-
[`TDA::ripsDiag()`] function with a maximum scale of 6 and up to dimension 2.
59-
You can use the `two_sample_test()` function to perform a two-sample test on
60-
these persistence diagrams. For example, to test whether the first 5
61-
persistence diagrams from the first set are significantly different from the
62-
first 5 persistence diagrams from the second set, you can run:
56+
sampled from the respective shape, with Gaussian noise added (standard deviation
57+
= 0.05). The persistence diagrams were computed using the
58+
[`TDA::ripsDiag()`](https://www.rdocumentation.org/packages/TDA/versions/1.9.1/topics/ripsDiag)
59+
function with a maximum scale of 6 and up to dimension 2.
60+
61+
You can use the
62+
[`two_sample_test()`](https://tdaverse.github.io/inphr/reference/two_sample_test.html)
63+
function to perform a two-sample test on these persistence diagrams. For
64+
example, to test whether the first 5 persistence diagrams from the first set are
65+
significantly different from the first 5 persistence diagrams from the second
66+
set, you can run:
6367

6468
```{r}
6569
two_sample_test(trefoils1[1:5], trefoils2[1:5], B = 100L)
@@ -75,12 +79,12 @@ two_sample_test(trefoils1[1:5], archspirals[1:5], B = 100L)
7579

7680
## Contributions
7781

82+
### Code of Conduct
83+
7884
Contributions are welcome! Please feel free to open an issue or a pull request
7985
if you have any suggestions or improvements. The package is still in its early
8086
stages, so any feedback is appreciated.
8187

82-
### Code of Conduct
83-
8488
Please note that the {inphr} project is released with a [Contributor Code of
8589
Conduct](https://contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html). By
8690
contributing to this project, you agree to abide by its terms.

README.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ coverage](https://codecov.io/gh/tdaverse/inphr/graph/badge.svg)](https://app.cod
1010
[![R-CMD-check](https://github.com/tdaverse/inphr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/tdaverse/inphr/actions/workflows/R-CMD-check.yaml)
1111
<!-- badges: end -->
1212

13-
The goal of {inphr} is to provide a set of functions for performing null
14-
hypothesis testing on samples of persistence diagrams using the theory
15-
of permutations. Currently, only two-sample testing is implemented.
16-
Inputs can be either samples of persistence diagrams themselves or
17-
vectorizations. In the former case, they are embedded in a metric space
18-
using either the Bottleneck or Wasserstein distance. In the former case,
19-
persistence data becomes functional data and inference is performed
20-
using tools available in the
13+
The goal of [{inphr}](https://tdaverse.github.io/inphr/) is to provide a
14+
set of functions for performing null hypothesis testing on samples of
15+
persistence diagrams using the theory of permutations. Currently, only
16+
two-sample testing is implemented. Inputs can be either samples of
17+
persistence diagrams themselves or vectorizations. In the former case,
18+
they are embedded in a metric space using either the Bottleneck or
19+
Wasserstein distance. In the former case, persistence data becomes
20+
functional data and inference is performed using tools available in the
2121
[{fdatest}](https://permaverse.github.io/fdatest/) package.
2222

2323
## Installation
@@ -46,12 +46,16 @@ set contains persistence diagrams computed from noisy samples of 2-armed
4646
Archimedean spirals. Each set contains 24 persistence diagrams, each
4747
computed from a sample of 120 points sampled from the respective shape,
4848
with Gaussian noise added (standard deviation = 0.05). The persistence
49-
diagrams were computed using the \[`TDA::ripsDiag()`\] function with a
50-
maximum scale of 6 and up to dimension 2. You can use the
51-
`two_sample_test()` function to perform a two-sample test on these
52-
persistence diagrams. For example, to test whether the first 5
53-
persistence diagrams from the first set are significantly different from
54-
the first 5 persistence diagrams from the second set, you can run:
49+
diagrams were computed using the
50+
[`TDA::ripsDiag()`](https://www.rdocumentation.org/packages/TDA/versions/1.9.1/topics/ripsDiag)
51+
function with a maximum scale of 6 and up to dimension 2.
52+
53+
You can use the
54+
[`two_sample_test()`](https://tdaverse.github.io/inphr/reference/two_sample_test.html)
55+
function to perform a two-sample test on these persistence diagrams. For
56+
example, to test whether the first 5 persistence diagrams from the first
57+
set are significantly different from the first 5 persistence diagrams
58+
from the second set, you can run:
5559

5660
``` r
5761
two_sample_test(trefoils1[1:5], trefoils2[1:5], B = 100L)
@@ -69,12 +73,12 @@ two_sample_test(trefoils1[1:5], archspirals[1:5], B = 100L)
6973

7074
## Contributions
7175

76+
### Code of Conduct
77+
7278
Contributions are welcome! Please feel free to open an issue or a pull
7379
request if you have any suggestions or improvements. The package is
7480
still in its early stages, so any feedback is appreciated.
7581

76-
### Code of Conduct
77-
7882
Please note that the {inphr} project is released with a [Contributor
7983
Code of
8084
Conduct](https://contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html).

0 commit comments

Comments
 (0)