Re:Generating random points inside a sphere
by nalourie on Saturday August 04, 2018 @10:23PM
(#17689372)
For people who like the simplicity of the rejection algorithm, it might be worth checking out Ziggurat sampling which is based on a similar idea, but shapes the sampling region to reduce rejections: https://en.m.wikipedia.org/wiki/Ziggurat_algorithm
[ Parent
| on HN ]
Re:Generating random points inside a sphere
by charmides on Saturday August 04, 2018 @10:32PM
(#17689392)
To add to that comment, importance sampling is also an attempt to reduce the number of rejections and could be interesting here.
Re:Generating random points inside a sphere
by throwaway313213 on Sunday August 05, 2018 @12:30AM
(#17689673)
Importance sampling works when you're interested in some linear function[al] of the distribution; not for actual sampling.