|
|
|
User Rating: Rated by: |
Fair (2.9/5) 15 user(s) |
|
|
|
Random Points in an n-Dimensional Hypersphere description |
|
|
Random Points in an n-Dimensional Hypersphere - Randomly and uniformly distributes points throughout a hypersphere. This creates a set of random points defined by Cartesian coordinates and uniformly distributed over the interior of an n-dimensional hypersphere of radius r with center at the origin.
The 'randn' function is first used to create independent multivariate normally distributed sets of n random variables, each representing points in n-dimensional space. The incomplete gamma function, 'gammainc', is then used to map these points radially to the interior of an n-dimensional hypersphere of finite radius r in such a way as to be spatially uniformly distributed. Requirements:
· MATLAB Release: R10
|
|