rballunif | R Documentation |
Generates a random vector from a uniform distribution in a sphere centered at the origin
rballunif(n,d)
n |
Dimension of the random vector to be generated |
d |
Radius of the sphere |
The function is not vectorized: it is intended to generate one random vector at a time.
An pseudo-random vector from a uniform distribution in the
n
-dimensional sphere centered at the origin and having radius
d
Giovanni Petris GPetris@uark.edu
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.