@@ -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
5353noisy samples of trefoil knots, while the third set contains persistence
5454diagrams computed from noisy samples of 2-armed Archimedean spirals. Each set
5555contains 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}
6569two_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+
7884Contributions are welcome! Please feel free to open an issue or a pull request
7985if you have any suggestions or improvements. The package is still in its early
8086stages, so any feedback is appreciated.
8187
82- ### Code of Conduct
83-
8488Please note that the {inphr} project is released with a [ Contributor Code of
8589Conduct] ( https://contributor-covenant.org/version/2/1/CODE_OF_CONDUCT.html ) . By
8690contributing to this project, you agree to abide by its terms.
0 commit comments