Description Usage Arguments Details Value Examples

This function generates random samples from multivariate uniform distribution on a ball in **R**^d, equipped with *L^{2}* norm (*i.e.,* Euclidean distance), centered in **0**, with radius R.

1 | ```
runiform_ball(n, d, R)
``` |

`n` |
number of desired samples. |

`d` |
positive integer, representing the dimension of the observations. |

`R` |
positive real value, the radius of the ball in |

This function generates samples from the multivariate uniform distribution whose density is

*π(c, R) = Γ(d/2 + 1)/ π^{d/2} * 1/(R)^{d} 1_{B_{d}(R)}(c),*

where *1_{B_{d}(R)}* is a centered *L^{2}* ball with radius R.

a matrix of `n`

samples of length d.

1 2 3 | ```
##generating 10000 samples from uniform distribution on a unit ball in \strong{R}^{2}
result <- runiform_ball(10000, 2, 1)
plot(result)
``` |

```
Loading required package: mnormt
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.