sphereUnif | R Documentation |
S^d
The function sphereUnif
samples n
points from the sphere S^d
of radius r
embedded in R^{d+1}
, uniformly with respect to the volume measure of the sphere.
sphereUnif(n, d, r = 1)
n |
an integer specifying the number of points in the sample. |
d |
an integer specifying the dimension of the sphere |
r |
a numeric variable specifying the radius of the sphere. The default value is |
The function sphereUnif
returns an n
by 2 matrix of coordinates.
When d = 1
, this function is same as using circleUnif
.
Jisu Kim
circleUnif
, torusUnif
X <- sphereUnif(n = 100, d = 1, r = 1)
plot(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.