Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
OPT: Change dipy.core.sphere_stats.random_uniform_on_sphere #181
The function dipy.core.sphere_stats.random_uniform_on_sphere currently generates a random vector in R^3 following a normal distribution, then normalizes it. This obviously works well and is correct mathematically. It is however somehow difficult to read (at least for me) and slightly suboptmial. So why not use one of the methods described here: http://mathworld.wolfram.com/SpherePointPicking.html?