r_g_kern {polykde} | R Documentation |
Sample from the angular kernel density
Description
Simulation from the angular density function of an isotropic
kernel on the sphere \mathcal{S}^d
.
Usage
r_g_kern(n, d, h, kernel = "1", k = 10)
Arguments
n |
sample size. |
d |
vector of size |
h |
vector of size |
kernel |
kernel employed: |
k |
softplus kernel parameter. Defaults to |
Value
A vector of size n
with the sample.
Examples
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))
[Package polykde version 1.1.4 Index]