Description Usage Arguments Details Value Author(s)
View source: R/randsamp.ball.R
Generate a random sample from a uniform distribution in an n-dimensional ball of given radius.
1 | randsamp.ball(sampsize=1,dim=1,radius=1)
|
sampsize |
sample size |
dim |
dimension of ball |
radius |
radius of ball |
For details and references, see introduction of: Harman, R. and Lacko, V. (2010), On decompositional algorithms for uniform sampling from n-spheres and n-balls, Journal of Multivariate Analysis 101, 2297-2304.
Sampling output.
Peter Reichert <peter.reichert@eawag.ch>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.