4 ms·
I'm not sure I agree, I think the really high-level option is to use a library and not roll your own. For example: https://www.gnu.org/software/gsl/manual/htm
by carlob 12y ago
I'm not sure I agree, I think the really high-level option is to use a library and not roll your own.
For example:
https://www.gnu.org/software/gsl/manual/html_node/Spherical-Vector-Distributions.html https://www.gnu.org/software/gsl/manual/html_node/Spherical-...
- davmre 12y agoFair enough. Though it looks like gsl_ran_dir_nd is implemented using normalized Gaussians, so in this case we're back where we started. :-)