Last data update: 2014.03.03
|
R: Function to generate a random vector uniformly distributed in...
Function to generate a random vector uniformly distributed in a sphere
Description
Generates a random vector from a uniform distribution in a sphere
centered at the origin
Usage
rballunif(n,d)
Arguments
n |
Dimension of the random vector to be generated
|
d |
Radius of the sphere
|
Details
The function is not vectorized: it is intended to generate
one random vector at a time.
Value
An pseudo-random vector from a uniform distribution in the
n -dimensional sphere centered at the origin and having radius
d
Author(s)
Giovanni Petris GPetris@uark.edu
Results
|