Package: sphunif 1.4.0

Eduardo García-Portugués

sphunif: 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) <doi:10.1007/978-3-030-69944-4_12>, García-Portugués et al. (2023) <doi:10.3150/21-BEJ1454>, García-Portugués et al. (2024) <doi:10.48550/arXiv.2108.09874>, and Fernández-de-Marcos and García-Portugués (2024) <doi:10.48550/arXiv.2405.13531>.

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

sphunif_1.4.0.tar.gz
sphunif_1.4.0.tar.gz(r-4.5-noble)sphunif_1.4.0.tar.gz(r-4.4-noble)
sphunif_1.4.0.tgz(r-4.4-emscripten)sphunif_1.4.0.tgz(r-4.3-emscripten)
sphunif.pdf |sphunif.html
sphunif/json (API)
NEWS

# Install 'sphunif' in R:
install.packages('sphunif', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/egarpor/sphunif/issues

Uses libs:
  • openblas– Optimized BLAS
  • c++– GNU Standard C++ Library v3
Datasets:

openblascpp

2.65 score 1 packages 15 scripts 153 downloads 213 exports 16 dependencies

Last updated 7 months agofrom:9a62ee0b26. Checks:OK: 1 NOTE: 1. Indexed: no.

TargetResultDate
Doc / VignettesOKDec 21 2024
R-4.5-linux-x86_64NOTEDec 21 2024

Exports:A_theta_xakxangles_to_sphereavail_cir_testsavail_sph_testsbk_to_ukbk_to_vk2c_unif_capcir_gapscir_stat_Ajnecir_stat_Bakshaevcir_stat_Binghamcir_stat_CCF09cir_stat_Cressiecir_stat_FG01cir_stat_Gine_Fncir_stat_Gine_Gncir_stat_Ginicir_stat_Gini_squaredcir_stat_Greenwoodcir_stat_Hermans_Rassoncir_stat_Hodges_Ajnecir_stat_Kuipercir_stat_Log_gapscir_stat_Max_uncovercir_stat_Num_uncovercir_stat_PADcir_stat_PCvMcir_stat_Poissoncir_stat_PRtcir_stat_Pyckecir_stat_Pycke_qcir_stat_Rangecir_stat_Raocir_stat_Rayleighcir_stat_Rieszcir_stat_Rothmancir_stat_Sobolevcir_stat_Softmaxcir_stat_Vacancycir_stat_Watsoncir_stat_Watson_1976con_fcutoff_locdevcutoff_wschisqd_cir_stat_Ajned_cir_stat_Bakshaevd_cir_stat_Binghamd_cir_stat_Gine_Fnd_cir_stat_Gine_Gnd_cir_stat_Ginid_cir_stat_Gini_squaredd_cir_stat_Greenwoodd_cir_stat_Hermans_Rassond_cir_stat_Hodges_Ajned_cir_stat_Kuiperd_cir_stat_Log_gapsd_cir_stat_Max_uncoverd_cir_stat_Num_uncoverd_cir_stat_PADd_cir_stat_PCvMd_cir_stat_Poissond_cir_stat_PRtd_cir_stat_Pycked_cir_stat_Pycke_qd_cir_stat_Ranged_cir_stat_Raod_cir_stat_Rayleighd_cir_stat_Rieszd_cir_stat_Rothmand_cir_stat_Sobolevd_cir_stat_Softmaxd_cir_stat_Vacancyd_cir_stat_Watsond_cir_stat_Watson_1976d_Kolmogorovd_locdevd_p_kd_proj_unifd_proj_unif_capd_Sobolevd_sph_stat_Ajned_sph_stat_Bakshaevd_sph_stat_Binghamd_sph_stat_CJ12d_sph_stat_Gine_Fnd_sph_stat_Gine_Gnd_sph_stat_PADd_sph_stat_PCvMd_sph_stat_Poissond_sph_stat_PRtd_sph_stat_Rayleighd_sph_stat_Rayleigh_HDd_sph_stat_Rieszd_sph_stat_Sobolevd_sph_stat_Softmaxd_sph_stat_Stereod_unif_capd_wschisqF_from_fF_inv_from_ff_locdevf_locdev_Png_i_kGauss_Legen_nodesGauss_Legen_weightsGegen_coefsGegen_coefs_2dGegen_coefs_PnGegen_normGegen_norm_2dGegen_polynGegen_polyn_2dGegen_seriesGegen_series_2dint_sph_MCp_cir_stat_Ajnep_cir_stat_Bakshaevp_cir_stat_Binghamp_cir_stat_Gine_Fnp_cir_stat_Gine_Gnp_cir_stat_Ginip_cir_stat_Gini_squaredp_cir_stat_Greenwoodp_cir_stat_Hermans_Rassonp_cir_stat_Hodges_Ajnep_cir_stat_Hodges_Ajne2p_cir_stat_Kuiperp_cir_stat_Log_gapsp_cir_stat_Max_uncoverp_cir_stat_Num_uncoverp_cir_stat_PADp_cir_stat_PCvMp_cir_stat_Poissonp_cir_stat_PRtp_cir_stat_Pyckep_cir_stat_Pycke_qp_cir_stat_Rangep_cir_stat_Raop_cir_stat_Rayleighp_cir_stat_Rieszp_cir_stat_Rothmanp_cir_stat_Sobolevp_cir_stat_Softmaxp_cir_stat_Vacancyp_cir_stat_Watsonp_cir_stat_Watson_1976p_Kolmogorovp_proj_unifp_proj_unif_capp_Sobolevp_sph_stat_Ajnep_sph_stat_Bakshaevp_sph_stat_Binghamp_sph_stat_CJ12p_sph_stat_Gine_Fnp_sph_stat_Gine_Gnp_sph_stat_PADp_sph_stat_PCvMp_sph_stat_Poissonp_sph_stat_PRtp_sph_stat_Rayleighp_sph_stat_Rayleigh_HDp_sph_stat_Rieszp_sph_stat_Sobolevp_sph_stat_Softmaxp_sph_stat_Stereop_wschisqPsi_matpsi_Pnq_proj_unifq_proj_unif_capq_Sobolevq_wschisqr_altr_locdevr_proj_unifr_proj_unif_capr_unif_capr_unif_cirr_unif_sphr_wschisqsph_stat_Ajnesph_stat_Bakshaevsph_stat_Binghamsph_stat_CCF09sph_stat_CJ12sph_stat_Gine_Fnsph_stat_Gine_Gnsph_stat_PADsph_stat_PCvMsph_stat_Poissonsph_stat_PRtsph_stat_Pyckesph_stat_Rayleighsph_stat_Rayleigh_HDsph_stat_Rieszsph_stat_Sobolevsph_stat_Softmaxsph_stat_Stereosphere_to_anglesTheta_to_Xuk_to_bkuk_to_vk2unif_statunif_stat_distrunif_stat_MCunif_testupper_tri_indvk2_to_bkvk2_to_ukweights_dfs_SobolevX_to_Theta

Dependencies:codetoolsdigestdoFuturedoRNGforeachfuturefuture.applyglobalsgsliteratorslistenvparallellyRcppRcppArmadillorngtoolsrotasym

sphunif: Uniformity Tests on the Circle, Sphere, and Hypersphere

Rendered fromsphunif.Rmdusingknitr::rmarkdownon Dec 21 2024.

Last update: 2024-05-25
Started: 2021-09-02

Readme and manuals

Help Manual

Help pageTopics
'sphunif': Uniformity Tests on the Circle, Sphere, and Hyperspheresphunif-package sphunif
Surface area of the intersection of two hyperspherical capsA_theta_x
Conversion between angular and Cartesian coordinates of the (hyper)sphereangles_to_sphere sphere_to_angles
Available circular and (hyper)spherical uniformity testsavail_cir_tests avail_sph_tests avail_tests
Transforming between polar and Cartesian coordinatescir_coord_conv Theta_to_X X_to_Theta
Circular gapscir_gaps
Statistics for testing circular uniformitycir_stat cir_stat_Ajne cir_stat_Bakshaev cir_stat_Bingham cir_stat_CCF09 cir_stat_Cressie cir_stat_FG01 cir_stat_Gine_Fn cir_stat_Gine_Gn cir_stat_Gini cir_stat_Gini_squared cir_stat_Greenwood cir_stat_Hermans_Rasson cir_stat_Hodges_Ajne cir_stat_Kuiper cir_stat_Log_gaps cir_stat_Max_uncover cir_stat_Num_uncover cir_stat_PAD cir_stat_PCvM cir_stat_Poisson cir_stat_PRt cir_stat_Pycke cir_stat_Pycke_q cir_stat_Range cir_stat_Rao cir_stat_Rayleigh cir_stat_Riesz cir_stat_Rothman cir_stat_Softmax cir_stat_Vacancy cir_stat_Watson cir_stat_Watson_1976
Comet orbitscomets
Craters named by the IUAcraters
Distribution and quantile functions from angular functionF_from_f F_inv_from_f
Gauss-Legendre quadratureGauss_Legen Gauss_Legen_nodes Gauss_Legen_weights
Gegenbauer polynomials and coefficientsGegenbauer Gegen_coefs Gegen_coefs_2d Gegen_norm Gegen_norm_2d Gegen_polyn Gegen_polyn_2d Gegen_series Gegen_series_2d
(Hyper)spherical harmonicsg_i_k harmonics
Monte Carlo integration of functions on the (hyper)sphereint_sph_MC
Local projected alternatives to uniformitycon_f cutoff_locdev d_locdev f_locdev locdev r_locdev
Asymptotic distributions for circular uniformity statisticscir_stat_distr d_cir_stat_Ajne d_cir_stat_Bakshaev d_cir_stat_Bingham d_cir_stat_Gine_Fn d_cir_stat_Gine_Gn d_cir_stat_Gini d_cir_stat_Gini_squared d_cir_stat_Greenwood d_cir_stat_Hermans_Rasson d_cir_stat_Hodges_Ajne d_cir_stat_Kuiper d_cir_stat_Log_gaps d_cir_stat_Max_uncover d_cir_stat_Num_uncover d_cir_stat_PAD d_cir_stat_PCvM d_cir_stat_Poisson d_cir_stat_PRt d_cir_stat_Pycke d_cir_stat_Pycke_q d_cir_stat_Range d_cir_stat_Rao d_cir_stat_Rayleigh d_cir_stat_Riesz d_cir_stat_Rothman d_cir_stat_Sobolev d_cir_stat_Softmax d_cir_stat_Vacancy d_cir_stat_Watson d_cir_stat_Watson_1976 d_Kolmogorov p_cir_stat_Ajne p_cir_stat_Bakshaev p_cir_stat_Bingham p_cir_stat_Gine_Fn p_cir_stat_Gine_Gn p_cir_stat_Gini p_cir_stat_Gini_squared p_cir_stat_Greenwood p_cir_stat_Hermans_Rasson p_cir_stat_Hodges_Ajne p_cir_stat_Hodges_Ajne2 p_cir_stat_Kuiper p_cir_stat_Log_gaps p_cir_stat_Max_uncover p_cir_stat_Num_uncover p_cir_stat_PAD p_cir_stat_PCvM p_cir_stat_Poisson p_cir_stat_PRt p_cir_stat_Pycke p_cir_stat_Pycke_q p_cir_stat_Range p_cir_stat_Rao p_cir_stat_Rayleigh p_cir_stat_Riesz p_cir_stat_Rothman p_cir_stat_Sobolev p_cir_stat_Softmax p_cir_stat_Vacancy p_cir_stat_Watson p_cir_stat_Watson_1976 p_Kolmogorov
Asymptotic distributions for spherical uniformity statisticsd_sph_stat_Ajne d_sph_stat_Bakshaev d_sph_stat_Bingham d_sph_stat_CJ12 d_sph_stat_Gine_Fn d_sph_stat_Gine_Gn d_sph_stat_PAD d_sph_stat_PCvM d_sph_stat_Poisson d_sph_stat_PRt d_sph_stat_Rayleigh d_sph_stat_Rayleigh_HD d_sph_stat_Riesz d_sph_stat_Sobolev d_sph_stat_Softmax d_sph_stat_Stereo p_sph_stat_Ajne p_sph_stat_Bakshaev p_sph_stat_Bingham p_sph_stat_CJ12 p_sph_stat_Gine_Fn p_sph_stat_Gine_Gn p_sph_stat_PAD p_sph_stat_PCvM p_sph_stat_Poisson p_sph_stat_PRt p_sph_stat_Rayleigh p_sph_stat_Rayleigh_HD p_sph_stat_Riesz p_sph_stat_Sobolev p_sph_stat_Softmax p_sph_stat_Stereo sph_stat_distr
Planet orbitsplanets
Utilities for projected-ecdf statistics of spherical uniformityakx f_locdev_Pn Gegen_coefs_Pn Pn psi_Pn
Projection of the spherical uniform distributiond_proj_unif proj_unif p_proj_unif q_proj_unif r_proj_unif
Shortest angles matrixPsi Psi_mat upper_tri_ind
Sample non-uniformly distributed spherical datar_alt
Sample uniformly distributed circular and spherical datar_unif r_unif_cir r_unif_sph
Rhea craters from Hirata (2016)rhea
Asymptotic distributions of Sobolev statistics of spherical uniformityd_p_k d_Sobolev p_Sobolev q_Sobolev Sobolev weights_dfs_Sobolev
Transformation between different coefficients in Sobolev statisticsbk_to_uk bk_to_vk2 Sobolev_coefs uk_to_bk uk_to_vk2 vk2_to_bk vk2_to_uk
Statistics for testing (hyper)spherical uniformitysph_stat sph_stat_Ajne sph_stat_Bakshaev sph_stat_Bingham sph_stat_CCF09 sph_stat_CJ12 sph_stat_Gine_Fn sph_stat_Gine_Gn sph_stat_PAD sph_stat_PCvM sph_stat_Poisson sph_stat_PRt sph_stat_Pycke sph_stat_Rayleigh sph_stat_Rayleigh_HD sph_stat_Riesz sph_stat_Softmax sph_stat_Stereo
Finite Sobolev statistics for testing (hyper)spherical uniformitycir_stat_Sobolev sph_stat_Sobolev
Uniform spherical cap distributionc_unif_cap d_proj_unif_cap d_unif_cap p_proj_unif_cap q_proj_unif_cap r_proj_unif_cap r_unif_cap unif_cap
Circular and (hyper)spherical uniformity statisticsunif_stat
Null distributions for circular and (hyper)spherical uniformity statisticsunif_stat_distr
Monte Carlo simulation of circular and (hyper)spherical uniformity statisticsunif_stat_MC
Circular and (hyper)spherical uniformity testsunif_test
Venus cratersvenus
Weighted sums of non-central chi squared random variablescutoff_wschisq d_wschisq p_wschisq q_wschisq r_wschisq wschisq