rabbed
- 241
- 3
Yeah, that got a bit nasty. Thanks, I'll dig into how that relates geometrically later.
My main wondering was if there was some general way to deal with source RV limits when they consist of variables, but I guess it's highly specific to the geometry.
I think you might have missed something I wrote above, because I edited it while you wrote your reply maybe:
For a uniformly distributed angle of a circle with radius r, I calculated X_PDF(x) = 1/(pi*sqrt(r^2-x^2)), Y_PDF(y) = 1/(pi*sqrt(r^2-y^2)). I guess that means that I can randomize a bunch of x-coordinates according to X_PDF(x) and for each x, I set y = +/-sqrt(r^2-x^2) and this will give me a uniform distribution of points around the circle?
Would the equivalent for a sphere be to solve X_PDF(x) and Y_PDF(y) by building on the knowledge we've gathered in this post, then randomize an x and y-coordinate according to those distributions and set z = +/-sqrt(R^2-Y^2-X^2)?
Y_PDF(y) = 1/(2*R)
Z_PDF(z) = 1/(2*R)
X^2 = R^2 - Y^2 - Z^2
My main wondering was if there was some general way to deal with source RV limits when they consist of variables, but I guess it's highly specific to the geometry.
I think you might have missed something I wrote above, because I edited it while you wrote your reply maybe:
For a uniformly distributed angle of a circle with radius r, I calculated X_PDF(x) = 1/(pi*sqrt(r^2-x^2)), Y_PDF(y) = 1/(pi*sqrt(r^2-y^2)). I guess that means that I can randomize a bunch of x-coordinates according to X_PDF(x) and for each x, I set y = +/-sqrt(r^2-x^2) and this will give me a uniform distribution of points around the circle?
Would the equivalent for a sphere be to solve X_PDF(x) and Y_PDF(y) by building on the knowledge we've gathered in this post, then randomize an x and y-coordinate according to those distributions and set z = +/-sqrt(R^2-Y^2-X^2)?
Y_PDF(y) = 1/(2*R)
Z_PDF(z) = 1/(2*R)
X^2 = R^2 - Y^2 - Z^2