Uniformity Tests on the Circle, Sphere, and Hypersphere

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) , García-Portugués et al. (2023) , Fernández-de-Marcos and García-Portugués (2024) , and García-Portugués et al. (2025) .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("sphunif")

1.4.4 by Eduardo García-Portugués, 4 months ago


https://github.com/egarpor/sphunif


Report a bug at https://github.com/egarpor/sphunif/issues


Browse source code at https://github.com/cran/sphunif


Authors: Eduardo García-Portugués [aut, cre] (ORCID: , Thomas Verdebout [aut] , Alberto Fernández-de-Marcos [ctb] , Paula Navarro [ctb]


Documentation:   PDF Manual  


GPL-3 license


Imports doFuture, doRNG, foreach, future, gsl, rotasym

Depends on Rcpp

Suggests CompQuadForm, goftest, knitr, markdown, mvtnorm, numDeriv, progress, progressr, rmarkdown, scatterplot3d, testthat, viridisLite

Linking to Rcpp, RcppArmadillo


Imported by polykde, ridgetorus.

Suggested by QuadratiK.


See at CRAN