Description Usage Arguments Details Value Author(s) See Also Examples
Generates a sample of points uniformly distributed on the surface of a sphere in d-space.
1 | rsphere(n, d)
|
n |
an integer, the sample size. |
d |
an integer, the dimension of the space. For example, a circle is defined in 2D-space, a sphere in 3D-space. |
The algorithm is based on normalizing to length 1 each d-vector of a sample from a multivariate normal N(0, I).
a matrix of n
rows and d
columns.
Giovanni M. Marchetti
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.