runif_on_sphere | 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.