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>.
| Version: | 1.4.3 |
| Depends: | R (≥ 3.5.0), Rcpp |
| Imports: | doFuture, doRNG, foreach, future, gsl, rotasym |
| LinkingTo: | Rcpp, RcppArmadillo |
| Suggests: | CompQuadForm, goftest, knitr, markdown, mvtnorm, numDeriv, progress, progressr, rmarkdown, scatterplot3d, testthat, viridisLite |
| Published: | 2025-11-09 |
| DOI: | 10.32614/CRAN.package.sphunif |
| Author: | Eduardo García-Portugués
|
| Maintainer: | Eduardo García-Portugués <edgarcia at est-econ.uc3m.es> |
| BugReports: | https://github.com/egarpor/sphunif/issues |
| License: | GPL-3 |
| URL: | https://github.com/egarpor/sphunif |
| NeedsCompilation: | yes |
| Citation: | sphunif citation info |
| Materials: | NEWS |
| CRAN checks: | sphunif results |
| Reference manual: | sphunif.html , sphunif.pdf |
| Vignettes: |
sphunif: Uniformity Tests on the Circle, Sphere, and Hypersphere (source, R code) |
| Package source: | sphunif_1.4.3.tar.gz |
| Windows binaries: | r-devel: sphunif_1.4.3.zip, r-release: sphunif_1.4.3.zip, r-oldrel: sphunif_1.4.3.zip |
| macOS binaries: | r-release (arm64): sphunif_1.4.3.tgz, r-oldrel (arm64): sphunif_1.4.3.tgz, r-release (x86_64): sphunif_1.4.3.tgz, r-oldrel (x86_64): sphunif_1.4.3.tgz |
| Old sources: | sphunif archive |
| Reverse imports: | polykde, ridgetorus |
| Reverse suggests: | QuadratiK |
Please use the canonical form https://CRAN.R-project.org/package=sphunif to link to this page.
Need a high-speed mirror for your open-source project?
Contact our mirror admin team at info@clientvps.com.
This archive is provided as a free public service to the community.
Proudly supported by infrastructure from VPSPulse , RxServers , BuyNumber , UnitVPS , OffshoreName and secure payment technology by ArionPay.