Sampling from a distribution on a torus
1 | rtorus(N, f, a, b)
|
N |
Sample size. |
f |
Probability density as a function of spherical coordinates (theta, phi). |
a |
Radius of big circle. |
b |
Radius of small circle. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.