runif_sphere | R Documentation |
Uniform sampling on a sphere or in a sphere, in arbitrary dimension. This code is borrowed directly from the uniformly package (https://CRAN.R-project.org/package=uniformly)
runif_on_sphere(n, d, r = 1)
runif_in_sphere(n, d, r = 1)
n |
number of simulations |
d |
dimension of the space |
r |
radius of the sphere |
The simulations in a n
times d
matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.