runif_on_sphere {HDiR} | R Documentation |
This function generates a random sample on the unit sphere.
runif_on_sphere(n, d, r = 1)
n |
Size of the sample to be generated. |
d |
Dimension of the space which contains the sphere. |
r |
Radius of the sphere. |
A matrix of n
rows and d
columns containing the sample points.
Paula Saavedra-Nieves and Rosa M. Crujeiras.