This function samples n points from the ellipsoid with equation (x/a)^2+(y/b)^2+(z/c)^2=1, uniformly with respect to its surface. This function is tentative. There is no guarantee that points are sampled unifomly.
1 | xEllip_unif(n, a, b, c)
|
n |
the number of points in the sample. |
a |
the diameter of x-axis direction. |
b |
the diameter of y-axis direction. |
c |
the diameter of z-axis direction. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.