r_g_kern | R Documentation |
Simulation from the angular density function of an isotropic
kernel on the sphere \mathcal{S}^d
.
r_g_kern(n, d, h, kernel = "1", k = 10)
n |
sample size. |
d |
vector of size |
h |
vector of size |
kernel |
kernel employed: |
k |
softplus kernel parameter. Defaults to |
A vector of size n
with the sample.
hist(r_g_kern(n = 1e3, d = 2, h = 1, kernel = "1"), breaks = 30,
probability = TRUE, main = "", xlim = c(-1, 1))
hist(r_g_kern(n = 1e3, d = 2, h = 1, kernel = "2"), breaks = 30,
probability = TRUE, main = "", xlim = c(-1, 1))
hist(r_g_kern(n = 1e3, d = 2, h = 1, kernel = "3"), breaks = 30,
probability = TRUE, main = "", xlim = c(-1, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.