(no title)
mkaic
|
6 months ago
My favorite way to generate random points on a n-dimensional sphere is to just sample n times from a Gaussian distribution to get a n-dimensional vector, and then normalizing that vector to the radius of the desired sphere.
ravin_gees|6 months ago
[1] https://docs.scipy.org/doc/scipy/reference/generated/scipy.s...
Sharlin|6 months ago
dragonwriter|6 months ago
_alternator_|6 months ago
I’d also point out that the usual way Gaussians are generated (sample uniformly from the unit interval and remap via the Gaussian percentile) can be expressed as sampling from a d-dimensional cube and then post-processing as well, with the advantage that it works in one shot. (Edit: typo)