ball_unif: (Quasi) uniform points in a p-dimensional ball

ball_unifR Documentation

(Quasi) uniform points in a p-dimensional ball

Description

ball_unif generates random or quasi-random uniform points in a p-dimensional ball.

Usage

ball_unif(cen, rad, n, rand = TRUE)

Arguments

cen

a vector specifying the center of the ball.

rad

radius of the ball.

n

number of points.

rand

whether to generate random or quasi random points. The default value is TRUE.

Details

ball_unif generates random uniform points or quasi uniform points by twinning algorithm in a p-dimensional ball.

Value

a matrix of the generated points.

References

Vakayil, Akhil, and V. Roshan Joseph. (2022). "Data twinning". Statistical Analysis and Data Mining: The ASA Data Science Journal, 15(5), 598-610.

Wang, Shangkun, Adam P. Generale, Surya R. Kalidindi, and V. Roshan Joseph. (2024), "Sequential designs for filling output spaces", Technometrics, 66, 65–76.

Examples


x = ball_unif(c(0,0), 1, 10, rand=FALSE)
plot(x, type='p')


OSFD documentation built on April 4, 2025, 12:45 a.m.