ball_unif {OSFD} | R Documentation |
(Quasi) uniform points in a p-dimensional ball
Description
ball_unif
generate 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. Default value is TRUE. |
Details
ball_unif
generate 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. "Data twinning." Statistical Analysis and Data Mining: The ASA Data Science Journal 15.5 (2022): 598-610.
Wang, Shangkun, Adam P. Generale, Surya R. Kalidindi, and V. Roshan Joseph. "Sequential Designs for Filling Output Spaces." Technometrics, to appear (2023).
Examples
x = ball_unif(c(0,0),1,10,rand=FALSE)
plot(x,type='p')
[Package OSFD version 1.0 Index]