Uniformity Tests on the Circle, Sphere, and Hypersphere
Overview
Implementation of uniformity tests on the circle and (hyper)sphere. The main function of the package is unif_test(), which conveniently collects more than 35 tests for assessing uniformity on S^{p-1} = {x in R^p : ||x|| = 1}, p >= 2. The test statistics are implemented in the unif_stat() function, which allows computing several statistics for different samples within a single call, thus facilitating Monte Carlo experiments. Furthermore, the unif_stat_MC() function allows parallelizing them in a simple way. The asymptotic null distributions of the statistics are available through the function unif_stat_distr(). The core of 'sphunif' is coded in C++ by relying on the 'Rcpp' package. The package also provides several novel datasets and gives the replicability for the data applications/simulations in García-Portugués et al. (2021) doi:10.1007/978-3-030-69944-4_12, García-Portugués et al. (2023) doi:10.3150/21-BEJ1454, Fernández-de-Marcos and García-Portugués (2024) doi:10.1016/j.spl.2024.110218, and García-Portugués et al. (2025) doi:10.1080/01621459.2025.2566414.
- Add
cmbdataset
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK12 OK2026-04-25
- NOTE12 OK, 2 NOTE2026-04-22
- ERROR11 OK, 2 NOTE, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 43 (6 internal)includes a package overview page
- Examples that run
- 100%35 run in a plain check
- Exported functions with examples
- 97%
- Documented parameters
- 91%
- Return-value docs
- 100%
- Help pages citing references
- 42%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- not measured
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
PRs over time
9 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/egarpor/sphunif on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
Show all practicesHide 3 practices
Dependencies
Installing sphunif adds 15 packages (6 with compiled code, 7.1 MB of source tarballs). Heaviest: rotasym 2.4 MB, Rcpp 1.8 MB, RcppArmadillo 1.0 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- 1.4.4Latest
- RR 4.6.0 released · 2026-04-24
- 1.4.32025-11-09 · diff ↗
- 1.4.22025-08-18 · diff ↗
- 1.4.12025-07-27 · diff ↗ ·
added 6 exports
H_ab, d_cir_stat_Stein, d_sph_stat_Stein, p_cir_stat_Stein, p_sph_stat_Stein, rot_ab - RR 4.5.0 released · 2025-04-11
- 1.4.02024-05-24 · diff ↗ ·
added 17 exports
c_unif_cap, d_cir_stat_Poisson, d_cir_stat_Softmax, d_proj_unif_cap, d_sph_stat_Poisson, d_sph_stat_Softmax, d_sph_stat_Stereo, d_unif_cap, p_cir_stat_Poisson, p_cir_stat_Softmax, p_proj_unif_cap, p_sph_stat_Poisson, p_sph_stat_Softmax, p_sph_stat_Stereo, q_proj_unif_cap, r_proj_unif_cap, r_unif_cap - RR 4.4.0 released · 2024-04-24
- 1.3.02023-12-04 · diff ↗ ·
added 11 exports
cir_stat_Poisson, cir_stat_Sobolev, cir_stat_Softmax, d_cir_stat_Sobolev, d_sph_stat_Sobolev, p_cir_stat_Sobolev, p_sph_stat_Sobolev, sph_stat_Poisson, sph_stat_Sobolev, sph_stat_Softmax, sph_stat_Stereo - 1.1.02023-08-21 · diff ↗
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- 1.0.12021-09-02
- RR 4.1.0 released · 2021-05-18
Package metadata
- First published
- 2021-09-02
- Total releases
- 8 / 5 yrs
- License
- GPL-3 OSI
- Minimum R
- ≥ 3.5.0
- Bundled data
- 482 KB / 6 files
- Download size
- 793 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("sphunif")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.