vendredi 29 mai 2020

Random Sampling for Isotropic Angle

When sampling angles in 3-d space to get angles isotropically, I've been read from a few textbooks that the proper way to sample is this is with phi=2*pi*r1 and theta=arccos(1-2*r2) where r1 and r2 are values from 0 to 1. However, I'm a little confused about this. It seems to me like for the distribution to be isotropic, we would need to sample theta=pi*r2.




Aucun commentaire:

Enregistrer un commentaire