sphunif1.4.0 package

Uniformity Tests on the Circle, Sphere, and Hypersphere

wschisq

Weighted sums of non-central chi squared random variables

r_unif

Sample uniformly distributed circular and spherical data

A_theta_x

Surface area of the intersection of two hyperspherical caps

angles_to_sphere

Conversion between angular and Cartesian coordinates of the (hyper)sph...

avail_tests

Available circular and (hyper)spherical uniformity tests

beta_inc

The incomplete beta function and its inverse

chisq

Density and distribution of a chi squared

cir_coord_conv

Transforming between polar and Cartesian coordinates

cir_gaps

Circular gaps

cir_stat

Statistics for testing circular uniformity

cir_stat_distr

Asymptotic distributions for circular uniformity statistics

ecdf_bin

Efficient evaluation of the empirical cumulative distribution function

F_from_f

Distribution and quantile functions from angular function

Gauss_Legen

Gauss--Legendre quadrature

Gegenbauer

Gegenbauer polynomials and coefficients

Sobolev

Asymptotic distributions of Sobolev statistics of spherical uniformity

harmonics

(Hyper)spherical harmonics

int_sph_MC

Monte Carlo integration of functions on the (hyper)sphere

locdev

Local projected alternatives to uniformity

Pn

Utilities for projected-ecdf statistics of spherical uniformity

proj_unif

Projection of the spherical uniform distribution

Psi

Shortest angles matrix

r_alt

Sample non-uniformly distributed spherical data

unif_test

Circular and (hyper)spherical uniformity tests

Sobolev_coefs

Transformation between different coefficients in Sobolev statistics

sort_each_col

Sort the columns of a matrix

sph_stat

Statistics for testing (hyper)spherical uniformity

sph_stat_distr

Asymptotic distributions for spherical uniformity statistics

sph_stat_Sobolev

Finite Sobolev statistics for testing (hyper)spherical uniformity

sphunif-package

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

unif_cap

Uniform spherical cap distribution

unif_stat

Circular and (hyper)spherical uniformity statistics

unif_stat_distr

Null distributions for circular and (hyper)spherical uniformity statis...

unif_stat_MC

Monte Carlo simulation of circular and (hyper)spherical uniformity sta...

utils

Low-level utilities for sphunif

wschisq_utils

Utilities for weighted sums of non-central chi squared random variable...

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>.

  • Maintainer: Eduardo García-Portugués
  • License: GPL-3
  • Last published: 2024-05-24