Description Usage Arguments Value Author(s) Examples
Sample from the 2-ball in d-dimensions.
1 | mgc.sims.2ball(n, d, r = 1, cov.scale = 0)
|
n |
the number of samples. |
d |
the number of dimensions. |
r |
the radius of the 2-ball. Defaults to |
cov.scale |
if desired, sample from 2-ball with error sigma. Defaults to |
the points sampled from the ball, as a [n, d]
array.
Eric Bridgeford
1 2 3 | library(mgc)
# sample 100 points from 3-d 2-ball with radius 2
X <- mgc.sims.2ball(100, 3, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.