d_vmf_polysph {polykde} | R Documentation |
Density of the product of von Mises–Fisher distributions on the polysphere
Description
Computes the density of the product of von Mises–Fisher densities on the polysphere.
Usage
d_vmf_polysph(x, d, mu, kappa, log = FALSE)
Arguments
x |
a matrix of size |
d |
vector of size |
mu |
a vector of size |
kappa |
a vector of size |
log |
compute the logarithm of the density? Defaults to |
Value
A vector of size nx
with the evaluated density.
Examples
# Simple check of integration on S^1 x S^2
d <- c(1, 2)
mu <- c(0, 1, 0, 1, 0)
kappa <- c(1, 1)
x <- r_vmf_polysph(n = 1e4, d = d, mu = mu, kappa = kappa)
mean(1 / d_vmf_polysph(x = x, d = d, mu = mu, kappa = kappa)) /
prod(rotasym::w_p(p = d + 1))
[Package polykde version 1.1.4 Index]